From 312995a1d77caed11e77e5541279b9cccd575290 Mon Sep 17 00:00:00 2001 From: Jacob Oldfield Date: Wed, 7 Apr 2021 08:58:23 +1000 Subject: [PATCH] PR - Requested changes --- .../test_partner_contact_in_several_companies.py | 12 +++--------- .../odoo/addons/partner_contact_in_several_companies | 1 + setup/partner_contact_in_several_companies/setup.py | 6 ++++++ 3 files changed, 10 insertions(+), 9 deletions(-) create mode 120000 setup/partner_contact_in_several_companies/odoo/addons/partner_contact_in_several_companies create mode 100644 setup/partner_contact_in_several_companies/setup.py diff --git a/partner_contact_in_several_companies/tests/test_partner_contact_in_several_companies.py b/partner_contact_in_several_companies/tests/test_partner_contact_in_several_companies.py index 88a35647c..7b83338c6 100644 --- a/partner_contact_in_several_companies/tests/test_partner_contact_in_several_companies.py +++ b/partner_contact_in_several_companies/tests/test_partner_contact_in_several_companies.py @@ -120,10 +120,7 @@ class PartnerContactInSeveralCompaniesCase(common.TransactionCase): # 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). @@ -143,10 +140,7 @@ class PartnerContactInSeveralCompaniesCase(common.TransactionCase): # 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"}) @@ -162,7 +156,7 @@ class PartnerContactInSeveralCompaniesCase(common.TransactionCase): "'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, diff --git a/setup/partner_contact_in_several_companies/odoo/addons/partner_contact_in_several_companies b/setup/partner_contact_in_several_companies/odoo/addons/partner_contact_in_several_companies new file mode 120000 index 000000000..52ba70804 --- /dev/null +++ b/setup/partner_contact_in_several_companies/odoo/addons/partner_contact_in_several_companies @@ -0,0 +1 @@ +../../../../partner_contact_in_several_companies \ No newline at end of file diff --git a/setup/partner_contact_in_several_companies/setup.py b/setup/partner_contact_in_several_companies/setup.py new file mode 100644 index 000000000..28c57bb64 --- /dev/null +++ b/setup/partner_contact_in_several_companies/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)