diff options
| -rwxr-xr-x | indoteknik_custom/models/sale_order.py | 4 |
1 files 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 - |
