diff --git a/contract/__manifest__.py b/contract/__manifest__.py index 3aaebd550..79f2f396f 100644 --- a/contract/__manifest__.py +++ b/contract/__manifest__.py @@ -11,7 +11,7 @@ { "name": "Recurring - Contracts Management", - "version": "14.0.1.2.0", + "version": "14.0.1.2.1", "category": "Contract Management", "license": "AGPL-3", "author": "Tecnativa, ACSONE SA/NV, Odoo Community Association (OCA)", diff --git a/contract/models/contract.py b/contract/models/contract.py index e75a705f7..364013540 100644 --- a/contract/models/contract.py +++ b/contract/models/contract.py @@ -546,7 +546,9 @@ class ContractContract(models.Model): invoice_line_vals = line._prepare_invoice_line(move_form=move_form) if invoice_line_vals: # Allow extension modules to return an empty dictionary for - # nullifying line + # nullifying line. We should then cleanup certain values. + del invoice_line_vals["company_id"] + del invoice_line_vals["company_currency_id"] invoice_vals["invoice_line_ids"].append((0, 0, invoice_line_vals)) invoices_values.append(invoice_vals) # Force the recomputation of journal items