Browse Source

[IMP] - update invoice_line vals only if it is not null

pull/208/head
sbejaoui 6 years ago
committed by Thomas Binsfeld
parent
commit
ba6e7840b6
  1. 2
      product_contract/models/contract_line.py

2
product_contract/models/contract_line.py

@ -20,6 +20,6 @@ class AccountAnalyticInvoiceLine(models.Model):
res = super(AccountAnalyticInvoiceLine, self)._prepare_invoice_line(
invoice_id=invoice_id
)
if self.sale_order_line_id:
if self.sale_order_line_id and res:
res['sale_line_ids'] = [(6, 0, [self.sale_order_line_id.id])]
return res
Loading…
Cancel
Save