diff --git a/modules/account_cash_rounding/sale.py b/modules/account_cash_rounding/sale.py index bc7b1eb913..b989c23ba0 100644 --- a/modules/account_cash_rounding/sale.py +++ b/modules/account_cash_rounding/sale.py @@ -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(