mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[REF] Contract Product: invoice in prepare_invoice_line is optional
This commit is contained in:
committed by
Denis Roussel
parent
1b9e84c373
commit
4f2af0e866
@@ -16,9 +16,9 @@ class AccountAnalyticInvoiceLine(models.Model):
|
|||||||
)
|
)
|
||||||
|
|
||||||
@api.multi
|
@api.multi
|
||||||
def _prepare_invoice_line(self, invoice_id):
|
def _prepare_invoice_line(self, invoice_id=False):
|
||||||
res = super(AccountAnalyticInvoiceLine, self)._prepare_invoice_line(
|
res = super(AccountAnalyticInvoiceLine, self)._prepare_invoice_line(
|
||||||
invoice_id
|
invoice_id=invoice_id
|
||||||
)
|
)
|
||||||
if self.sale_order_line_id:
|
if self.sale_order_line_id:
|
||||||
res['sale_line_ids'] = [(6, 0, [self.sale_order_line_id.id])]
|
res['sale_line_ids'] = [(6, 0, [self.sale_order_line_id.id])]
|
||||||
|
|||||||
Reference in New Issue
Block a user