Browse Source

[MIG] partner_sector: Migrated to 10.0

pull/619/head
Luis M. Ontalba 8 years ago
committed by mreficent
parent
commit
72718210c4
  1. 5
      partner_sector/README.rst
  2. 2
      partner_sector/__init__.py
  3. 8
      partner_sector/__manifest__.py
  4. 2
      partner_sector/models/res_partner.py
  5. 8
      partner_sector/models/res_partner_sector.py
  6. 4
      partner_sector/tests/test_res_partner_sector.py
  7. 2
      partner_sector/views/res_partner_sector_view.xml

5
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 <javieria@antiun.com>
* Vicent Cubells <vicent.cubells@tecnativa.com>
* Pedro M. Baeza <pedro.baeza@tecnativa.com>
* Luis M. Ontalba <luis.martinez@tecnativa.com>
Maintainer
----------

2
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

8
partner_sector/__openerp__.py → 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",

2
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):

8
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):

4
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):

2
partner_sector/views/res_partner_sector_view.xml

@ -24,7 +24,7 @@
<menuitem action="res_partner_sector_action"
id="menu_res_partner_sector"
name="Sectors"
parent="base.menu_config_address_book"
parent="sales_team.menu_sale_config"
sequence="3"/>
</odoo>
Loading…
Cancel
Save