From ba37e0a6d5bc50b4df5129c867751ff5304dbead Mon Sep 17 00:00:00 2001 From: duongtq Date: Tue, 17 Oct 2023 12:30:56 +0700 Subject: [PATCH] [IMP] edi_sale_oca: Support edi_id for edi_sale_edifact_oca --- edi_sale_oca/wizard/sale_order_import.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/edi_sale_oca/wizard/sale_order_import.py b/edi_sale_oca/wizard/sale_order_import.py index cdb25a5967f..81a30e8f95e 100644 --- a/edi_sale_oca/wizard/sale_order_import.py +++ b/edi_sale_oca/wizard/sale_order_import.py @@ -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