Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion base_edifact/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"bin": [],
},
"depends": [
# "edi_party_data_oca"
"edi_party_data_oca",
# for configuration
"account",
"partner_identification",
Expand Down
3 changes: 2 additions & 1 deletion base_edifact/tests/test_base_edifact.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ def tearDown(self):
def test_pydifact_obj(self):
edifact_docu = _get_file_content("Retail_EDIFACT_ORDERS_sample1.txt")
obj = self.base_edifact_model.pydifact_obj(edifact_docu)
self.assertEqual(obj["order"]["order_ref"], "1AA1TEST")
# [1]: to get the list messages, [0]: to get the first list value of the segments
self.assertEqual(obj[1]["segments"][0]["BGM"][1], "1AA1TEST")

def test_map2odoo_address(self):
"""Address segment
Expand Down