From 68ab32eff7e28c9e7c1b5780c632e5f4bb78e081 Mon Sep 17 00:00:00 2001 From: Nicolas Martinelli Date: Thu, 9 Jan 2020 13:11:40 +0000 Subject: [PATCH] [FIX] point_of_sale: missing variable declaration opw-2169164 closes odoo/odoo#43073 X-original-commit: 5432e24a990885a68df5a691388eb5c3584d9759 Signed-off-by: Nicolas Martinelli (nim) --- addons/point_of_sale/static/src/js/models.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/point_of_sale/static/src/js/models.js b/addons/point_of_sale/static/src/js/models.js index ed772c2d68b..b592434f992 100644 --- a/addons/point_of_sale/static/src/js/models.js +++ b/addons/point_of_sale/static/src/js/models.js @@ -1948,7 +1948,7 @@ exports.Orderline = Backbone.Model.extend({ else if(tax.amount_type === 'fixed') incl_fixed_amount += quantity * tax.amount else{ - tax_amount = self._compute_all(tax, base, quantity); + var tax_amount = self._compute_all(tax, base, quantity); incl_fixed_amount += tax_amount; cached_tax_amounts[i] = tax_amount; }