From 6f35b0b3fa707f3763a8d5cd918cfbc6f4f37ce0 Mon Sep 17 00:00:00 2001 From: JosDeGraeve Date: Thu, 19 Feb 2015 14:38:45 +0100 Subject: [PATCH] [FIX] point_of_sale: set analytic account on pos invoice The analytic account is set on entry generated from pos.order but it was not for the invoices generated from the pos orders. --- addons/point_of_sale/point_of_sale.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/point_of_sale/point_of_sale.py b/addons/point_of_sale/point_of_sale.py index 4ba175868f2..ff662645a62 100644 --- a/addons/point_of_sale/point_of_sale.py +++ b/addons/point_of_sale/point_of_sale.py @@ -979,6 +979,7 @@ class pos_order(osv.osv): 'invoice_id': inv_id, 'product_id': line.product_id.id, 'quantity': line.qty, + 'account_analytic_id': self._prepare_analytic_account(cr, uid, line, context=context), } inv_name = product_obj.name_get(cr, uid, [line.product_id.id], context=context)[0][1] inv_line.update(inv_line_ref.product_id_change(cr, uid, [],