To process sale you must set a customer location on party

While pressing the PAY button in POS, I get following error:

“To process sale you must set a customer location on party”

In the party, if I manually set the customer location in stock as “Customer” for that record, problem is resolved but only for that record. Any new/next record “customer location” is again empty.

POS Pay option doesnt let me pay

@udono can you please look into this issue i am facing

The field has a default value defined using the “Customer” location created by default in the XML.
But if you have delete it, there is no way to set from the UI another default location. I think this should be improved: Define default party locations in configuration (#13415) · Issues · Tryton / Tryton · GitLab.

Can you exactly pinpoint which xml file?

Locations are created in modules/stock/location.xml but user can delete them because they are noupdate="1".
So I guess you have delete the “Customer” one which prevent to set it as default on the parties.