From a3fbc2da86d9184ffad669d8fd16806d289bfdf7 Mon Sep 17 00:00:00 2001 From: Goffin Simon Date: Thu, 25 Jun 2015 10:19:52 +0200 Subject: [PATCH] [FIX] point of sale: rounding globally The amount total computed for pos order must be the sum of the rounded tax amount and the rounded untax amount. Inspired from _amount_total in "sale.order". opw:643254 --- addons/point_of_sale/point_of_sale.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/point_of_sale/point_of_sale.py b/addons/point_of_sale/point_of_sale.py index 3fbd3257b0f..8f84809164f 100644 --- a/addons/point_of_sale/point_of_sale.py +++ b/addons/point_of_sale/point_of_sale.py @@ -689,7 +689,8 @@ class pos_order(osv.osv): val1 += self._amount_line_tax(cr, uid, line, context=context) val2 += line.price_subtotal res[order.id]['amount_tax'] = cur_obj.round(cr, uid, cur, val1) - res[order.id]['amount_total'] = cur_obj.round(cr, uid, cur, val1+val2) + amount_untaxed = cur_obj.round(cr, uid, cur, val2) + res[order.id]['amount_total'] = res[order.id]['amount_tax'] + amount_untaxed return res _columns = {