diff options
| author | Victor Feyens <vfe@odoo.com> | 2019-10-11 11:30:40 +0000 |
|---|---|---|
| committer | Raphael Collet <rco@odoo.com> | 2019-11-18 12:25:05 +0000 |
| commit | 9215e73fa229d64167de076ef0a288dd8d89a2cc (patch) | |
| tree | e116014058d6649f26de2149e589819178952015 /addons/payment/models | |
| parent | 3455d02189ef8879c8e7f331d159bbd3c1c7b949 (diff) | |
[IMP] * : replace with_context(force_company=c) by with_company(c)
Diffstat (limited to 'addons/payment/models')
| -rw-r--r-- | addons/payment/models/payment_acquirer.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/payment/models/payment_acquirer.py b/addons/payment/models/payment_acquirer.py index 0ba02689ede..e095a4d7111 100644 --- a/addons/payment/models/payment_acquirer.py +++ b/addons/payment/models/payment_acquirer.py @@ -761,7 +761,7 @@ class PaymentTransaction(models.Model): trans.payment_id = payment for company in payments: - payments[company].with_context(force_company=company, company_id=company).post() + payments[company].with_company(company).with_context(company_id=company).post() def _set_transaction_cancel(self): '''Move the transaction's payment to the cancel state(e.g. Paypal).''' |
