Browse Source

[FIX] pos_price_to_weight: use list_price instead of price

pull/485/head
Manuel Claeys Bouuaert 4 years ago
parent
commit
316db4bfde
  1. 4
      pos_price_to_weight/static/src/js/models.js

4
pos_price_to_weight/static/src/js/models.js

@ -27,8 +27,8 @@ odoo.define('pos_price_to_weight.models', function (require) {
}
var quantity = 0;
var price = parseFloat(parsed_code.value) || 0;
if (price !== 0 && product.price !== 0){
quantity = price / product.price;
if (price !== 0 && product.list_price !== 0){
quantity = price / product.list_price;
}
selectedOrder.add_product(product, {quantity: quantity, merge: false});
return true;

Loading…
Cancel
Save