Skip to content

Commit

Permalink
[IMP] edi_sale_oca: Support edi_id for edi_sale_edifact_oca
Browse files Browse the repository at this point in the history
  • Loading branch information
duongtq committed Oct 25, 2023
1 parent f5b1a41 commit a54ed0f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion edi_sale_oca/wizard/sale_order_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,7 @@ def _prepare_create_order_line(
)
# TODO: we should probably add an ext reference field to s.o.l. in sale_order_import
# and get rid of this override.
vals["edi_id"] = import_line.get("order_line_ref")
vals["edi_id"] = import_line.get("order_line_ref") or import_line.get(
"sequence"
)
return vals

0 comments on commit a54ed0f

Please sign in to comment.