diff --git a/partner_sector/README.rst b/partner_sector/README.rst index 684172e7e..1aff7c12d 100644 --- a/partner_sector/README.rst +++ b/partner_sector/README.rst @@ -14,7 +14,7 @@ Configuration To manage sectors, you need to: -* Go to *Sales > Configuration > Address Book > Sectors*. +* Go to *Sales > Configuration > Sectors*. Usage @@ -29,7 +29,7 @@ Only companies have sectors. .. 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/9.0 + :target: https://runbot.odoo-community.org/runbot/134/10.0 Known issues / Roadmap ====================== @@ -55,6 +55,7 @@ Contributors * Javier Iniesta * Vicent Cubells * Pedro M. Baeza +* Luis M. Ontalba Maintainer ---------- diff --git a/partner_sector/__init__.py b/partner_sector/__init__.py index 044276aef..a77a6fcbc 100644 --- a/partner_sector/__init__.py +++ b/partner_sector/__init__.py @@ -1,6 +1,4 @@ # -*- coding: utf-8 -*- -# © 2015 Antiun Ingenieria S.L. - Antonio Espinosa -# © 2016 Tecnativa S.L. - Vicent Cubells # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from . import models diff --git a/partner_sector/__openerp__.py b/partner_sector/__manifest__.py similarity index 78% rename from partner_sector/__openerp__.py rename to partner_sector/__manifest__.py index 27eec15a6..ebbb27dc9 100644 --- a/partner_sector/__openerp__.py +++ b/partner_sector/__manifest__.py @@ -1,12 +1,12 @@ # -*- coding: utf-8 -*- -# © 2015 Antiun Ingenieria S.L. - Javier Iniesta -# © 2016 Tecnativa S.L. - Vicent Cubells +# Copyright 2015 Antiun Ingenieria S.L. - Javier Iniesta +# Copyright 2016-2017 Tecnativa S.L. - Vicent Cubells # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). { "name": "Partner Sector", "summary": "Add partner sectors", - "version": "9.0.1.0.1", + "version": "10.0.1.0.1", "category": "Customer Relationship Management", "website": "http://www.tecnativa.com", "author": "Tecnativa, Odoo Community Association (OCA)", @@ -14,7 +14,7 @@ "application": False, "installable": True, "depends": [ - "base", + "sale", ], "data": [ "security/ir.model.access.csv", diff --git a/partner_sector/models/res_partner.py b/partner_sector/models/res_partner.py index b362f999a..0d7fcbecf 100644 --- a/partner_sector/models/res_partner.py +++ b/partner_sector/models/res_partner.py @@ -3,7 +3,7 @@ # © 2016 Tecnativa S.L. - Vicent Cubells # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -from openerp import models, fields, api, exceptions, _ +from odoo import models, fields, api, exceptions, _ class ResPartner(models.Model): diff --git a/partner_sector/models/res_partner_sector.py b/partner_sector/models/res_partner_sector.py index bf34c0637..a5402aca9 100644 --- a/partner_sector/models/res_partner_sector.py +++ b/partner_sector/models/res_partner_sector.py @@ -4,7 +4,7 @@ # © 2016 Tecnativa S.L. - Pedro M. Baeza # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -from openerp import _, api, fields, exceptions, models +from odoo import _, api, fields, exceptions, models class ResPartnerSector(models.Model): @@ -20,8 +20,10 @@ class ResPartnerSector(models.Model): child_ids = fields.One2many(comodel_name='res.partner.sector', inverse_name='parent_id', string="Children") - parent_left = fields.Integer('Parent Left', select=True) - parent_right = fields.Integer('Parent Right', select=True) + # parent_left = fields.Integer('Parent Left', select=True) + parent_left = fields.Integer('Parent Left', index=True) + # parent_right = fields.Integer('Parent Right', select=True) + parent_right = fields.Integer('Parent Right', index=True) @api.multi def name_get(self): diff --git a/partner_sector/tests/test_res_partner_sector.py b/partner_sector/tests/test_res_partner_sector.py index 16b830ee0..6b0e982e8 100644 --- a/partner_sector/tests/test_res_partner_sector.py +++ b/partner_sector/tests/test_res_partner_sector.py @@ -4,8 +4,8 @@ # © 2016 Tecnativa S.L. - Pedro M. Baeza # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -from openerp.tests import common -from openerp.exceptions import ValidationError +from odoo.tests import common +from odoo.exceptions import ValidationError class TestResPartnerSector(common.SavepointCase): diff --git a/partner_sector/views/res_partner_sector_view.xml b/partner_sector/views/res_partner_sector_view.xml index e614ac998..244ab0660 100644 --- a/partner_sector/views/res_partner_sector_view.xml +++ b/partner_sector/views/res_partner_sector_view.xml @@ -24,7 +24,7 @@