Skip to content

Commit

Permalink
[13.0] [FIX] product_price_taxes_included: Fixes to compatibility wit…
Browse files Browse the repository at this point in the history
…h product pack
  • Loading branch information
nicomacr committed May 4, 2021
1 parent aa1a223 commit e846f2a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions product_price_taxes_included/models/product_pricelist.py
Expand Up @@ -22,6 +22,9 @@ def get_products_price(
company_id = (
self._context.get('company_id') or self.env.company.id)
for product in products:
# for compatibility with product_pack
if 'pack_ok' in product._fields and product.pack_ok and product.pack_component_price != 'ignored':
continue
res[product.id] = product.taxes_id.filtered(
lambda x: x.company_id.id == company_id).compute_all(
res[product.id], product=product.id)['total_included']
Expand Down

0 comments on commit e846f2a

Please sign in to comment.