diff --git a/partner_company_type/README.rst b/partner_company_type/README.rst index ac06c22ec..117da5a57 100644 --- a/partner_company_type/README.rst +++ b/partner_company_type/README.rst @@ -18,7 +18,7 @@ Usage .. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas :alt: Try me on Runbot - :target: https://runbot.odoo-community.org/runbot/134/10.0 + :target: https://runbot.odoo-community.org/runbot/134/11.0 Bug Tracker @@ -41,6 +41,7 @@ Contributors ------------ * Denis Roussel +* George Daramouskas Maintainer ---------- diff --git a/partner_company_type/__init__.py b/partner_company_type/__init__.py index 0650744f6..c32fd62b7 100644 --- a/partner_company_type/__init__.py +++ b/partner_company_type/__init__.py @@ -1 +1,2 @@ +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). from . import models diff --git a/partner_company_type/__manifest__.py b/partner_company_type/__manifest__.py index 25c496eda..6086b3d40 100644 --- a/partner_company_type/__manifest__.py +++ b/partner_company_type/__manifest__.py @@ -1,17 +1,14 @@ -# -*- coding: utf-8 -*- # Copyright 2017 ACSONE SA/NV -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). - +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). { 'name': 'Partner Company Type', 'summary': 'Adds a company type to partner that are companies', - 'version': '10.0.1.0.1', + 'version': '11.0.1.0.0', 'license': 'AGPL-3', 'author': 'ACSONE SA/NV,Odoo Community Association (OCA)', - 'website': 'https://acsone.eu', + 'website': 'https://github.com/OCA/partner-contact', 'depends': [ - 'base', - 'sales_team', + 'contacts', ], 'data': [ 'security/res_partner_company_type.xml', diff --git a/partner_company_type/migrations/10.0.1.0.1/post-migration.py b/partner_company_type/migrations/10.0.1.0.1/post-migration.py deleted file mode 100644 index e0ae776d4..000000000 --- a/partner_company_type/migrations/10.0.1.0.1/post-migration.py +++ /dev/null @@ -1,10 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2017 ACSONE SA/NV -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). - - -def migrate(cr, version): - - cr.execute( - 'UPDATE res_partner SET partner_company_type_id = company_type_id' - ) diff --git a/partner_company_type/models/__init__.py b/partner_company_type/models/__init__.py index 7dc16e0aa..58deb40b4 100644 --- a/partner_company_type/models/__init__.py +++ b/partner_company_type/models/__init__.py @@ -1,2 +1,3 @@ +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). from . import res_partner_company_type from . import res_partner diff --git a/partner_company_type/models/res_partner.py b/partner_company_type/models/res_partner.py index 21d936b2c..06a8db5eb 100644 --- a/partner_company_type/models/res_partner.py +++ b/partner_company_type/models/res_partner.py @@ -1,7 +1,5 @@ -# -*- coding: utf-8 -*- # Copyright 2017 ACSONE SA/NV # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). - from odoo import fields, models @@ -10,5 +8,6 @@ class ResPartner(models.Model): partner_company_type_id = fields.Many2one( 'res.partner.company.type', - string='Company Type' + string='Company Type', + oldname='company_type_id', ) diff --git a/partner_company_type/models/res_partner_company_type.py b/partner_company_type/models/res_partner_company_type.py index c93089777..cda82ae10 100644 --- a/partner_company_type/models/res_partner_company_type.py +++ b/partner_company_type/models/res_partner_company_type.py @@ -1,7 +1,5 @@ -# -*- coding: utf-8 -*- # Copyright 2017 ACSONE SA/NV # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). - from odoo import fields, models diff --git a/partner_company_type/tests/__init__.py b/partner_company_type/tests/__init__.py index 89e75be6c..2c72c542a 100644 --- a/partner_company_type/tests/__init__.py +++ b/partner_company_type/tests/__init__.py @@ -1,4 +1 @@ -# -*- coding: utf-8 -*- -# Copyright 2016 ACSONE SA/NV -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from . import test_company_type diff --git a/partner_company_type/tests/test_company_type.py b/partner_company_type/tests/test_company_type.py index c1271368e..6e8e796f3 100644 --- a/partner_company_type/tests/test_company_type.py +++ b/partner_company_type/tests/test_company_type.py @@ -1,11 +1,11 @@ -# -*- coding: utf-8 -*- # Copyright 2016 ACSONE SA/NV # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). - from odoo.tests import TransactionCase +from odoo.tools.misc import mute_logger from psycopg2 import IntegrityError +@mute_logger('odoo.sql_db') class CompanyTypeTest(TransactionCase): def setUp(self): diff --git a/partner_company_type/views/res_partner_company_type.xml b/partner_company_type/views/res_partner_company_type.xml index 51e1dccc2..5f887098d 100644 --- a/partner_company_type/views/res_partner_company_type.xml +++ b/partner_company_type/views/res_partner_company_type.xml @@ -45,7 +45,6 @@ {} - - +