From 47b42e7f28790cbb7d574a0c9d00704d4cf7ffff Mon Sep 17 00:00:00 2001 From: Pierre Masereel Date: Thu, 3 Oct 2019 14:20:17 +0000 Subject: [PATCH] [FIX] point_of_sale: load pos without tax It was impossible to load the POS when no tax were existing because the promise is resolved in the each loop instead of after. So we've moved it after the loop which is its correct place. closes odoo/odoo#37898 Signed-off-by: pimodoo --- 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 cc00ad884ee..63f7a12816f 100644 --- a/addons/point_of_sale/static/src/js/models.js +++ b/addons/point_of_sale/static/src/js/models.js @@ -248,8 +248,8 @@ exports.PosModel = Backbone.Model.extend({ }).then(function (taxes) { _.each(taxes, function (tax) { self.taxes_by_id[tax.id].amount = tax.amount; - resolve(); }); + resolve(); }); }); },