From 31e67945e4131a881a87d5da8d917c827ee8f179 Mon Sep 17 00:00:00 2001 From: duongtq Date: Wed, 18 Oct 2023 10:59:36 +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 cdb25a596..81a30e8f9 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