Fix typo in set_context call when computing sale cash rounded amounts
Closes #12800
This commit is contained in:
@@ -45,7 +45,7 @@ class Sale(metaclass=PoolMeta):
|
|||||||
if self.currency:
|
if self.currency:
|
||||||
amounts = [amount]
|
amounts = [amount]
|
||||||
if self.payment_term and self.company:
|
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()
|
today = Date.today()
|
||||||
try:
|
try:
|
||||||
term_lines = self.payment_term.compute(
|
term_lines = self.payment_term.compute(
|
||||||
|
|||||||
Reference in New Issue
Block a user