diff --git a/pos_pricelist/__manifest__.py b/pos_pricelist/__manifest__.py index b21f2839..46865ed9 100644 --- a/pos_pricelist/__manifest__.py +++ b/pos_pricelist/__manifest__.py @@ -4,7 +4,7 @@ { 'name': 'POS Pricelist', - 'version': '10.0.1.0.0', + 'version': '10.0.1.0.1', 'category': 'Point Of Sale', 'author': "Tecnativa, " "Odoo SA, " diff --git a/pos_pricelist/static/src/js/models.js b/pos_pricelist/static/src/js/models.js index b64834da..e532455d 100644 --- a/pos_pricelist/static/src/js/models.js +++ b/pos_pricelist/static/src/js/models.js @@ -145,8 +145,8 @@ odoo.define("pos_pricelist.models", function (require) { return (! item.product_tmpl_id || item.product_tmpl_id[0] === self.product_tmpl_id) && (! item.product_id || item.product_id[0] === self.id) && (! item.categ_id || _.contains(category_ids, item.categ_id[0])) && - (! item.date_start || moment(item.date_start).isSameOrBefore(date)) && - (! item.date_end || moment(item.date_end).isSameOrAfter(date)); + (! item.date_start || moment(item.date_start) <= date) && + (! item.date_end || moment(item.date_end) >= date); }); var price = self.lst_price;