From 314e463c2ff7d7140558ef812562beb21e5ee94e Mon Sep 17 00:00:00 2001 From: "Jacky (trj)" Date: Thu, 13 Oct 2022 15:54:28 +0000 Subject: [PATCH] [FIX] point_of_sale: call method on right object Small error where the method is not called on the right object closes odoo/odoo#103283 X-original-commit: 269b89ddfe9f8f6b03552ca4f5c57a889fbe9ac0 Signed-off-by: Heinz Robin (rhe) Signed-off-by: Trinh Jacky (trj) --- 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 a54be64faec..349085bfa9d 100644 --- a/addons/point_of_sale/static/src/js/models.js +++ b/addons/point_of_sale/static/src/js/models.js @@ -1932,7 +1932,7 @@ class Orderline extends PosModel { if (this.pos.config.iface_tax_included === 'total') { var product = this.get_product(); var taxes_ids = product.taxes_id; - var product_taxes = this.get_taxes_after_fp(taxes_ids); + var product_taxes = this.pos.get_taxes_after_fp(taxes_ids); return this.compute_all(product_taxes, lst_price, 1, this.pos.currency.rounding).total_included; } return lst_price;