Skip to content

Commit 6657275

Browse files
committed
[FIX] base_import_match: Fix tests, name is required for contacts
1 parent aff3e7c commit 6657275

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
email,function,child_ids/name,child_ids/color,child_ids/email
2-
[email protected],Bug Fixer,Bart Steward,666,[email protected]
3-
,,Lisa Steward,777,[email protected]
4-
,,Maggie Steward,555,[email protected]
1+
name,email,function,child_ids/name,child_ids/color,child_ids/email
2+
Floyd Steward,[email protected],Bug Fixer,Bart Steward,666,[email protected]
3+
,,,Lisa Steward,777,[email protected]
4+
,,,Maggie Steward,555,[email protected]

base_import_match/tests/test_import.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,9 @@ def test_res_users_login(self):
115115
def test_res_partner_email_one2many(self):
116116
"""Change function based on email and import one2many record."""
117117
record = self._base_import_record("res.partner", "res_partner_email_one2many")
118-
record.do(
118+
record.execute_import(
119119
[
120+
"name",
120121
"email",
121122
"function",
122123
"child_ids/name",

0 commit comments

Comments
 (0)