summaryrefslogtreecommitdiff
path: root/addons/payment
diff options
context:
space:
mode:
authorVictor Feyens <vfe@odoo.com>2019-10-11 11:30:40 +0000
committerRaphael Collet <rco@odoo.com>2019-11-18 12:25:05 +0000
commit9215e73fa229d64167de076ef0a288dd8d89a2cc (patch)
treee116014058d6649f26de2149e589819178952015 /addons/payment
parent3455d02189ef8879c8e7f331d159bbd3c1c7b949 (diff)
[IMP] * : replace with_context(force_company=c) by with_company(c)
Diffstat (limited to 'addons/payment')
-rw-r--r--addons/payment/models/payment_acquirer.py2
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).'''