Browse Source

Merge pull request #251 from Tecnativa/10.0-pos_pricelist

[FIX] pos_pricelist: Use lower-version date comparison
pull/257/head
Pedro M. Baeza 7 years ago
committed by GitHub
parent
commit
7b28ccac37
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      pos_pricelist/__manifest__.py
  2. 4
      pos_pricelist/static/src/js/models.js

2
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, "

4
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;

Loading…
Cancel
Save