[FIX]: point_of_sale: this is undefined in a non-arrow function

closes odoo/odoo#63331

X-original-commit: 3c374465b27a562c313dc65697741d7536b686ef
Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
This commit is contained in:
Jacky (trj)
2020-12-14 13:46:27 +00:00
parent 89c1b47fbb
commit 848c7eb464
+1 -1
View File
@@ -3238,7 +3238,7 @@ exports.Order = Backbone.Model.extend({
tax_set[tax_id[i]] = true;
}
this.orderlines.each(function(line){
this.orderlines.each(line => {
var taxes_ids = this.tax_ids || line.get_product().taxes_id;
for (var i = 0; i < taxes_ids.length; i++) {
if (tax_set[taxes_ids[i]]) {