summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2022-09-29 16:21:52 +0700
committerstephanchrst <stephanchrst@gmail.com>2022-09-29 16:21:52 +0700
commit78811641ffa04c7930fe450f9222d21b5dfceb62 (patch)
tree75f771f7aeb62bb4bab710417df2048c7c75914d
parentfca62b9b9a56f92abffd624067ee75c64f1c84fa (diff)
Update sale_order.py
-rwxr-xr-xindoteknik_custom/models/sale_order.py4
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
-