[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:
Goffin Simon
2015-11-24 14:01:48 +01:00
parent 4424f301a6
commit bde7f4dad1
+1
View File
@@ -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