Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] base_edifact: Fix test and depend on edi_party_data_oca module #1

Open
wants to merge 1 commit into
base: 14.0-mig-sale_order_import_edifact
Choose a base branch
from
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