diff --git a/addons/point_of_sale/static/src/js/models.js b/addons/point_of_sale/static/src/js/models.js index 46376b41676..218992d845b 100644 --- a/addons/point_of_sale/static/src/js/models.js +++ b/addons/point_of_sale/static/src/js/models.js @@ -1718,7 +1718,7 @@ class Orderline extends PosModel { // 1) Flatten the taxes. var _collect_taxes = function(taxes, all_taxes){ - taxes.sort(function (tax1, tax2) { + taxes = [...taxes].sort(function (tax1, tax2) { return tax1.sequence - tax2.sequence; }); _(taxes).each(function(tax){