Commit 3bd9ed1 1 parent 9db1744 commit 3bd9ed1 Copy full SHA for 3bd9ed1
File tree 1 file changed +2
-2
lines changed
sale_order_import_edifact/wizard
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ def _compute_edifact_ok(self):
38
38
path , ext = os .path .splitext (self .order_filename )
39
39
ok = ext and ext [1 :] in extensions
40
40
if not ok :
41
- ok = b64decode (self .order_file [:4 ]) == b" UNB"
41
+ ok = b64decode (self .order_file [:4 ]) in ( b"UNA" , b" UNB")
42
42
rec .edifact_ok = ok
43
43
44
44
# TODO: Move this feature to the base module or to an additional module.
@@ -77,7 +77,7 @@ def button_parse_order_preview(self):
77
77
def _get_supported_types (self ):
78
78
# Add more types for EDIFACT
79
79
res = super ()._get_supported_types ()
80
- res .update ({"edifact" : ("text/plain" )})
80
+ res .update ({"edifact" : ("text/plain" , None )})
81
81
return res
82
82
83
83
@api .model
You can’t perform that action at this time.
0 commit comments