From 78811641ffa04c7930fe450f9222d21b5dfceb62 Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Thu, 29 Sep 2022 16:21:52 +0700 Subject: Update sale_order.py --- indoteknik_custom/models/sale_order.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/indoteknik_custom/models/sale_order.py b/indoteknik_custom/models/sale_order.py index 6410c150..6e16c63e 100755 --- a/indoteknik_custom/models/sale_order.py +++ b/indoteknik_custom/models/sale_order.py @@ -1,5 +1,6 @@ from odoo import fields, models, api, _ from odoo.exceptions import AccessError, UserError, ValidationError +from odoo.tools.misc import formatLang, get_lang import warnings @@ -184,8 +185,7 @@ class SaleOrderLine(models.Model): @api.onchange('product_id') def product_id_change(self): + super(SaleOrderLine, self).product_id_change() for line in self: - super(SaleOrderLine, self).product_id_change() if line.product_id and line.product_id.type == 'product': line.tax_id = line.order_id.sales_tax_id - -- cgit v1.2.3