diff --git a/agreement_serviceprofile/__manifest__.py b/agreement_serviceprofile/__manifest__.py index 983f10a36..20f92670d 100644 --- a/agreement_serviceprofile/__manifest__.py +++ b/agreement_serviceprofile/__manifest__.py @@ -4,7 +4,7 @@ { "name": "Agreement Service Profile", "summary": "Adds an Agreement Service Profile object", - "version": "14.0.1.0.0", + "version": "13.0.1.0.0", "category": "Contract", "author": "Pavlov Media, " "Open Source Integrators, " @@ -20,8 +20,6 @@ "views/agreement.xml", ], "development_status": "Beta", - "maintainers": [ - "max3903", - ], + "maintainers": ["max3903"], "installable": True, } diff --git a/agreement_serviceprofile/data/serviceprofile_stage.xml b/agreement_serviceprofile/data/serviceprofile_stage.xml index 7ee477635..4836aa34b 100644 --- a/agreement_serviceprofile/data/serviceprofile_stage.xml +++ b/agreement_serviceprofile/data/serviceprofile_stage.xml @@ -2,42 +2,35 @@ # Copyright (C) 2019 Open Source Integrators # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). --> - Draft 10 serviceprofile - In Progress 20 serviceprofile - Suspended 30 serviceprofile - To Renew 40 serviceprofile - Closed 50 serviceprofile - Cancelled 60 True serviceprofile - diff --git a/agreement_serviceprofile/tests/test_agreement_serviceprofile.py b/agreement_serviceprofile/tests/test_agreement_serviceprofile.py index 7727d4e61..d39a742ce 100644 --- a/agreement_serviceprofile/tests/test_agreement_serviceprofile.py +++ b/agreement_serviceprofile/tests/test_agreement_serviceprofile.py @@ -11,10 +11,7 @@ class TestAgreementServiceProfile(TransactionCase): super().setUp() self.test_customer = self.env["res.partner"].create({"name": "TestCustomer"}) self.agreement_type = self.env["agreement.type"].create( - { - "name": "Test Agreement Type", - "domain": "sale", - } + {"name": "Test Agreement Type", "domain": "sale"} ) self.test_agreement = self.env["agreement"].create( { @@ -27,10 +24,7 @@ class TestAgreementServiceProfile(TransactionCase): } ) self.test_serviceprofile = self.env["agreement.serviceprofile"].create( - { - "name": "TestServiceProfile", - "agreement_id": self.test_agreement.id, - } + {"name": "TestServiceProfile", "agreement_id": self.test_agreement.id} ) # TEST 01: Check Default Stage @@ -44,7 +38,6 @@ class TestAgreementServiceProfile(TransactionCase): self.assertEqual( sp_01._read_group_stage_ids(self.env["agreement.stage"], [], "id"), self.env["agreement.stage"].search( - [("stage_type", "=", "serviceprofile")], - order="id", + [("stage_type", "=", "serviceprofile")], order="id", ), ) diff --git a/agreement_serviceprofile/views/agreement_serviceprofile.xml b/agreement_serviceprofile/views/agreement_serviceprofile.xml index 406e373e5..592a92828 100644 --- a/agreement_serviceprofile/views/agreement_serviceprofile.xml +++ b/agreement_serviceprofile/views/agreement_serviceprofile.xml @@ -1,5 +1,4 @@ - Agreement Service Profile Tree @@ -15,7 +14,6 @@ - Agreement Service Profile Form @@ -65,7 +63,7 @@ - +
@@ -75,7 +73,6 @@ - Agreement Service Profile Kanban @@ -97,7 +94,6 @@ - Agreement Service Profile Search @@ -126,20 +122,17 @@ - Service Profiles agreement.serviceprofile tree,form - Service Profiles agreement.serviceprofile kanban,tree,form - - - diff --git a/agreement_serviceprofile/views/product.xml b/agreement_serviceprofile/views/product.xml index 574b86064..f57a0dfc9 100644 --- a/agreement_serviceprofile/views/product.xml +++ b/agreement_serviceprofile/views/product.xml @@ -1,7 +1,6 @@ - product.template.form.view @@ -20,7 +19,6 @@ - product.product.form.view @@ -39,5 +37,4 @@ - diff --git a/setup/agreement_serviceprofile/odoo/addons/agreement_serviceprofile b/setup/agreement_serviceprofile/odoo/addons/agreement_serviceprofile new file mode 120000 index 000000000..40322396f --- /dev/null +++ b/setup/agreement_serviceprofile/odoo/addons/agreement_serviceprofile @@ -0,0 +1 @@ +../../../../agreement_serviceprofile \ No newline at end of file diff --git a/setup/agreement_serviceprofile/setup.py b/setup/agreement_serviceprofile/setup.py new file mode 100644 index 000000000..28c57bb64 --- /dev/null +++ b/setup/agreement_serviceprofile/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)