From 6e359fce074fc114668f64cf248a7073cb766fc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20van=20der=20Essen?= Date: Fri, 6 Mar 2015 15:02:31 +0100 Subject: [PATCH] [FIX] point_of_sale: crash when submitting order --- addons/point_of_sale/point_of_sale.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/point_of_sale/point_of_sale.py b/addons/point_of_sale/point_of_sale.py index 5f92f8b2b6d..a143462bf2b 100644 --- a/addons/point_of_sale/point_of_sale.py +++ b/addons/point_of_sale/point_of_sale.py @@ -1291,8 +1291,8 @@ class pos_order_line(osv.osv): def _order_line_fields(self, cr, uid, line, context=None): if 'tax_ids' not in line: - product = self.pool['product.product'].browse(cr, uid, line['product_id'], context=context) - line['tax_ids'] = [(6, 0, [x.id for x in product.taxes_id])] + 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 def _amount_line_all(self, cr, uid, ids, field_names, arg, context=None):