Skip to content

Commit

Permalink
[IMP] base_edifact: LIN segment might not contain EAN
Browse files Browse the repository at this point in the history
  • Loading branch information
duongtq committed May 16, 2024
1 parent a61dbb6 commit af18d4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base_edifact/models/edifact.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def map2odoo_product(self, seg, pia=None):
['5', ['1276', 'SA', '', '9']]
SA. Supplier's Article Number
"""
code = seg[2][0]
code = seg[2][0] if len(seg) > 2 else False
product_tmp = self.env["product.template"]
if code:
field = "default_code" if seg[2][1] == "SRV" else "barcode"
Expand Down

0 comments on commit af18d4a

Please sign in to comment.