How to fix customer currency reference before assignment

UnboundLocalError: local variable ‘customer_currency’ referenced before assignment

I think here is the information: fix: customer_currency referenced before assignment by nextchamp-saqib · Pull Request #24607 · frappe/erpnext · GitHub

i have the same error, i’m trying ERPNext v13 in ubuntu 20. in the link there is only some lines with code, but i checked and i already have this lines in the code of the version 13

Is there any iformation about this bug? i cannot setup my POS. Thanks!