diff --git a/contract.py b/contract.py index a586658..c09b6ff 100644 --- a/contract.py +++ b/contract.py @@ -577,6 +577,8 @@ class SaleContractLine(Workflow, ModelSQL, ModelView): value['products_aiu'] = [('create', products_aiu)] lines_to_create.append(value) InvoiceLine.create(lines_to_create) + invoice.on_change_taxes() + invoice.save() self.write([self], {'origin': str(invoice)}) return invoice