[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) <rhe@odoo.com>
Signed-off-by: Trinh Jacky (trj) <trj@odoo.com>
This commit is contained in:
Jacky (trj)
2022-10-21 09:16:56 +02:00
parent a03f5cd631
commit 314e463c2f
+1 -1
View File
@@ -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;