Skip to content

Commit

Permalink
[IMP]pms_api_rest: get pricelist by channel conf
Browse files Browse the repository at this point in the history
  • Loading branch information
DarioLodeiros committed Sep 24, 2024
1 parent 38d3153 commit 9a557d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pms_api_rest/models/pms_property.py
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ def generate_prices_json(
product_context = dict(
self.env.context,
date=datetime.datetime.today().date(),
pricelist=3, # self.get_default_pricelist(),
pricelist=pricelist.id or pms_property.default_pricelist_id.id,
uom=product.uom_id.id,
fiscal_position=False,
property=pms_property_id,
Expand Down

0 comments on commit 9a557d5

Please sign in to comment.