mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
@@ -516,7 +516,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
|
||||
|
||||
Reference in New Issue
Block a user