From c1deaee54a86da31d51004aa05cfdff4c9f7e955 Mon Sep 17 00:00:00 2001 From: Javier Iniesta Date: Mon, 17 Aug 2015 14:35:53 +0200 Subject: [PATCH] [FIX] Pick taxes related with product templates --- pos_pricelist/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pos_pricelist/__init__.py b/pos_pricelist/__init__.py index e28daa3c..576e94c5 100644 --- a/pos_pricelist/__init__.py +++ b/pos_pricelist/__init__.py @@ -26,7 +26,9 @@ def set_pos_line_taxes(cr, registry): select l.id, t.id from pos_order_line l join pos_order o on l.order_id = o.id - join product_taxes_rel rel on rel.prod_id = l.product_id + join product_product p on l.product_id = p.id + join product_template pt on pt.id = p.product_tmpl_id + join product_taxes_rel rel on rel.prod_id = pt.id join account_tax t on rel.tax_id = t.id where t.company_id = o.company_id""") registry['pos.order']._install_tax_detail(cr, SUPERUSER_ID)