From 316db4bfde884a49c4fb7a82ce1a1d68fdb6db84 Mon Sep 17 00:00:00 2001 From: Manuel Claeys Bouuaert Date: Mon, 4 May 2020 19:22:41 +0200 Subject: [PATCH] [FIX] pos_price_to_weight: use list_price instead of price --- pos_price_to_weight/static/src/js/models.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pos_price_to_weight/static/src/js/models.js b/pos_price_to_weight/static/src/js/models.js index 5c0777be..df883e9e 100644 --- a/pos_price_to_weight/static/src/js/models.js +++ b/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;