From 52c99c81512e32e1bd0b567a422d31a2369f33fe Mon Sep 17 00:00:00 2001 From: Sylvain LE GAL Date: Tue, 4 Dec 2018 17:41:35 +0100 Subject: [PATCH] [FIX] display /kg for to_weight products --- pos_pricelist/static/src/js/models.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pos_pricelist/static/src/js/models.js b/pos_pricelist/static/src/js/models.js index 593d1d70..dd8c0430 100644 --- a/pos_pricelist/static/src/js/models.js +++ b/pos_pricelist/static/src/js/models.js @@ -576,7 +576,11 @@ function pos_pricelist_models(instance, module) { || 0, this.pos.dp['Product Price']); price = this.pos_widget.format_currency(price); if (k == 0) { - $(product_ui).find('.price-tag').html(price); + if (product.to_weight) { + $(product_ui).find('.price-tag').html(price + '/Kg'); + } else { + $(product_ui).find('.price-tag').html(price); + } } prices_displayed += qty + 'x → ' + price + '
';