From d37c8ef6327a834eaed7ce0dfa6a6b775aad96c1 Mon Sep 17 00:00:00 2001 From: Joren Van Onder Date: Tue, 1 Dec 2015 09:51:04 +0100 Subject: [PATCH] [FIX] point_of_sale: use mapped taxes when creating account moves We have a tax_ids_after_fiscal_position field on pos.order.line that contains the mapped taxes. We should use that to create the account moves. Otherwise the Point of Sale will create unbalanced journal entries. Fixes #9815 --- 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 7588e1f0d15..0de87c7a124 100644 --- a/addons/point_of_sale/point_of_sale.py +++ b/addons/point_of_sale/point_of_sale.py @@ -1324,7 +1324,7 @@ class pos_order(osv.osv): # Create the tax lines taxes = [] - for t in line.product_id.taxes_id: + for t in line.tax_ids_after_fiscal_position: if t.company_id.id == current_company.id: taxes.append(t.id) if not taxes: