Skip to content

Commit

Permalink
[FIX] pos_pricelist_show_discount: pricelist based on other pricelist
Browse files Browse the repository at this point in the history
  • Loading branch information
aleuffre committed Nov 3, 2023
1 parent 9aa35bb commit 1839197
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pos_pricelist_show_discount/static/src/js/models.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,10 @@ odoo.define("pos_pricelist_show_discount.models", function (require) {
category = category.parent;
}
const date = moment();
const pricelist_items = _.filter(self.order.pricelist.items, function (
item
) {
const pricelist = self.pos.config.display_discount_from_pricelist
? self.pos.discount_pricelist
: self.order.discount_pricelist;
const pricelist_items = _.filter(pricelist.items, function (item) {
return (
(!item.product_tmpl_id ||
item.product_tmpl_id[0] === self.product.product_tmpl_id) &&
Expand Down

0 comments on commit 1839197

Please sign in to comment.