mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[IMP] - update invoice_line vals only if it is not null
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user