From bde7f4dad1a852adb6d6bd4b1bca080b2f2fc23d Mon Sep 17 00:00:00 2001 From: Goffin Simon Date: Tue, 24 Nov 2015 13:01:22 +0100 Subject: [PATCH] [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 --- addons/sale/sale.py | 1 + 1 file changed, 1 insertion(+) 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