Fix typo in set_context call when computing sale cash rounded amounts

Closes #12800
This commit is contained in:
Sergi Almacellas Abellana
2023-12-05 09:34:46 +01:00
parent a23879f25c
commit d36ee557ff
+1 -1
View File
@@ -45,7 +45,7 @@ class Sale(metaclass=PoolMeta):
if self.currency:
amounts = [amount]
if self.payment_term and self.company:
with Transaction().set_company(company=self.company.id):
with Transaction().set_context(company=self.company.id):
today = Date.today()
try:
term_lines = self.payment_term.compute(