From cfbc29d930fcada50891688f8756aa8d7216523d Mon Sep 17 00:00:00 2001 From: Oscar Date: Fri, 21 May 2021 18:30:35 -0500 Subject: [PATCH] Test --- sale.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sale.py b/sale.py index 2cd880c..9900f6e 100644 --- a/sale.py +++ b/sale.py @@ -45,7 +45,8 @@ class Sale(metaclass=PoolMeta): product = Product(v['product']) v['unit'] = product.template.default_uom.id v['description'] = product.name - taxes = list(product.customer_taxes_used) + taxes = list(product.account_category.customer_taxes_used) + taxes_ids = [t.id for t in taxes] v['taxes'] = [('add', taxes)] price_list = args.get('price_list', None)