This commit is contained in:
Oscar 2021-05-21 18:30:35 -05:00
parent f8de4b0cb5
commit cfbc29d930
1 changed files with 2 additions and 1 deletions

View File

@ -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)