From 41ab66be780366c25c172cd50c7e9666a735e822 Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Tue, 10 Mar 2015 19:01:04 +0100 Subject: [PATCH] [FIX] point_of_sale: search `tax_ids` key in the right place --- addons/point_of_sale/point_of_sale.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/point_of_sale/point_of_sale.py b/addons/point_of_sale/point_of_sale.py index a143462bf2b..19dc7f09b69 100644 --- a/addons/point_of_sale/point_of_sale.py +++ b/addons/point_of_sale/point_of_sale.py @@ -1290,7 +1290,7 @@ class pos_order_line(osv.osv): _rec_name = "product_id" def _order_line_fields(self, cr, uid, line, context=None): - if 'tax_ids' not in line: + if line and 'tax_ids' not in line[2]: product = self.pool['product.product'].browse(cr, uid, line[2]['product_id'], context=context) line[2]['tax_ids'] = [(6, 0, [x.id for x in product.taxes_id])] return line