Files
account-financial-tools/account_credit_control/models
Cédric Pigeon (ACSONE) 5859951218 [FIX] account_credit_control: more accurate usage of sudo() to avoid multi-company issues (#666)
Step to reproduce:

* Define 2 companies A and B.
* Configure Policies only for company A (set the list of accounts)
* Set Admin user on company B

Try to change the policy on a partner on campany A. An error message will appear explaining that the account is not allowed on the policy.

The reason is that partner.property_account_receivable_id is evaluate in sudo() the contains the value of company B.
2018-07-14 10:48:02 +02:00
..