Skip to content

Commit

Permalink
fixup! fixup! [IMP] product_pricelist: extract product template products
Browse files Browse the repository at this point in the history
  • Loading branch information
Iryna Vyshnevska committed Apr 8, 2024
1 parent b0bbc79 commit c46789c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pricelist_cache/models/product_pricelist_item.py
Expand Up @@ -37,7 +37,7 @@ def _get_pricelist_products(self):
.ids
)
else:
products = rec.product_ids
products = rec.product_id.ids
return products

def _get_pricelist_products_group(self):
Expand All @@ -49,7 +49,7 @@ def _get_pricelist_products_group(self):
"""
pricelist_products = defaultdict(list)
for item in self:
pricelist_products[item.pricelist_id.id].append(
pricelist_products[item.pricelist_id.id].extend(
item._get_pricelist_products()
)
return pricelist_products
Expand Down

0 comments on commit c46789c

Please sign in to comment.