[FIX] sale: _prepare_invoice_line
When creating an invoice from a SO, the field 'sale_layout_cat_id' must be passed from each SO line to each invoice line. opw:656981 Closes #9157
This commit is contained in:
@@ -675,6 +675,7 @@ class SaleOrderLine(models.Model):
|
||||
'product_id': self.product_id.id or False,
|
||||
'invoice_line_tax_ids': [(6, 0, self.tax_id.ids)],
|
||||
'account_analytic_id': self.order_id.project_id.id,
|
||||
'sale_layout_cat_id': self.sale_layout_cat_id.id,
|
||||
}
|
||||
return res
|
||||
|
||||
|
||||
Reference in New Issue
Block a user