Skip to content

Commit

Permalink
PR - Requested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob-willdooit committed Apr 6, 2021
1 parent fab6ba2 commit 312995a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,7 @@ def test_04_contact_creation(self):

# Reset contact to standalone
new_contact.write({"contact_id": False})
self.assertEqual(
new_contact.contact_type,
"standalone",
)
self.assertEqual(new_contact.contact_type, "standalone")

# Reset contact to attached, and ensure only it is unlinked (i.e.
# context is ignored).
Expand All @@ -143,10 +140,7 @@ def test_05_contact_fields_sync(self):

# Test DOWNSTREAM sync
self.bob_contact.write({"name": "Rob Egnops"})
self.assertEqual(
self.bob_job1.name,
"Rob Egnops",
)
self.assertEqual(self.bob_job1.name, "Rob Egnops")

# Test UPSTREAM sync
self.bob_job1.write({"name": "Bob Egnops"})
Expand All @@ -162,7 +156,7 @@ def test_06_ir_action(self):
"'search_show_all_positions': " "{'is_set': True, 'set_value': False}"
)

details = self.env.ref("{}.{}".format("base", "action_partner_form")).read()[0]
details = self.env.ref("base.action_partner_form").read()[0]

self.assertIn(
new_context_val,
Expand Down
6 changes: 6 additions & 0 deletions setup/partner_contact_in_several_companies/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import setuptools

setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)

0 comments on commit 312995a

Please sign in to comment.