summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGoffin Simon <sig@odoo.com>2015-11-24 13:01:22 +0100
committerGoffin Simon <sig@odoo.com>2015-11-24 14:01:48 +0100
commitbde7f4dad1a852adb6d6bd4b1bca080b2f2fc23d (patch)
tree96f401981120944b2517116c3ef63f7aebc701af
parent4424f301a66df5e03651c5c550312bb5dfd20f4f (diff)
[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
-rw-r--r--addons/sale/sale.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/sale/sale.py b/addons/sale/sale.py
index 6bb07fe0a2f..9abec94a31e 100644
--- a/addons/sale/sale.py
+++ b/addons/sale/sale.py
@@ -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