diff --git a/pos_pricelist/static/src/js/models.js b/pos_pricelist/static/src/js/models.js index adc79c3e..5539162c 100644 --- a/pos_pricelist/static/src/js/models.js +++ b/pos_pricelist/static/src/js/models.js @@ -148,7 +148,7 @@ function pos_pricelist_models(instance, module) { db, product, partner, qty ); if (price !== false) { - this.price = price; + this.price = round_di(parseFloat(price) || 0, this.pos.dp['Product Price']); } } }, @@ -179,8 +179,7 @@ function pos_pricelist_models(instance, module) { the unit price of the previous quantity, to preserve manually entered prices as much as possible. */ if (price !== false && price !== old_price) { - this.price = price; - this.trigger('change', this); + this.set_unit_price(price); } }, /**