Skip to content

Commit

Permalink
[FIX] catalog_report: prices can include taxes
Browse files Browse the repository at this point in the history
  • Loading branch information
matiasperalta1 committed Aug 7, 2023
1 parent c716b6c commit 5787056
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions product_catalog_aeroo_report/report/parser.py
Expand Up @@ -64,8 +64,10 @@ def get_price(self, product, pricelist):
if sale_uom and product.sale_uom_ids:
product_obj = product_obj.with_context(
uom=product.sale_uom_ids[0].uom_id.id)
return product_obj.browse([product.id])._get_contextual_price()

price = product_obj.browse([product.id])._get_contextual_price()
if self._context.get('taxes_included'):
price = product.taxes_id.filtered(lambda tax: tax.company_id == self.env.user.company_id).compute_all(price, product=product)['total_included']
return price

def get_description(self, product, print_product_uom):

Expand Down

0 comments on commit 5787056

Please sign in to comment.