Browse Source

partner_contact_department: Migration to 10.0

pull/695/head
David Vidal 7 years ago
committed by Nikul-Chaudhary
parent
commit
9bcc9a2b92
  1. 11
      partner_contact_department/README.rst
  2. 7
      partner_contact_department/__manifest__.py
  3. 7
      partner_contact_department/models/res_partner.py
  4. 4
      partner_contact_department/tests/test_recursion.py
  5. 5
      partner_contact_department/views/res_partner_department_view.xml
  6. 3
      partner_contact_department/views/res_partner_view.xml

11
partner_contact_department/README.rst

@ -29,7 +29,7 @@ To use this module, you need to:
.. 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
Bug Tracker
===========
@ -50,11 +50,12 @@ Images
Contributors
------------
* Pedro M. Baeza <pedro.baeza@serviciosbaeza.com>
* Antonio Espinosa <antonioea@antiun.com>
* Rafael Blasco <rafabn@antiun.com>
* Jairo Llopis <yajo.sk8@gmail.com>
* Pedro M. Baeza <pedro.baeza@tecnativa.com>
* Antonio Espinosa <antonio.espinosa@tecnativa.com>
* Rafael Blasco <rafael.blasco@tecnativa.com>
* Jairo Llopis <jairo.llopis@tecnativa.com>
* Vicent Cubells <vicent.cubells@tecnativa.com>
* David Vidal <david.vidal@tecnativa.com>
Maintainer
----------

7
partner_contact_department/__openerp__.py → partner_contact_department/__manifest__.py

@ -1,12 +1,13 @@
# -*- coding: utf-8 -*-
# © 2014-2015 Tecnativa S.L. - Jairo Llopis
# © 2016 Tecnativa S.L. - Vicent Cubells
# Copyright 2014-2015 Tecnativa S.L. - Jairo Llopis
# Copyright 2016 Tecnativa S.L. - Vicent Cubells
# Copyright 2017 Tecnativa S.L. - David Vidal
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
'name': 'Contact department',
"summary": "Assign contacts to departments",
'version': '9.0.1.0.0',
'version': '10.0.1.0.0',
'category': 'Customer Relationship Management',
'author': 'Tecnativa, '
'Odoo Community Association (OCA)',

7
partner_contact_department/models/res_partner.py

@ -3,8 +3,8 @@
# © 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, _
from openerp.exceptions import ValidationError
from odoo import models, fields, api, _
from odoo.exceptions import ValidationError
class ResPartner(models.Model):
@ -31,8 +31,7 @@ class ResPartnerDepartment(models.Model):
child_ids = fields.One2many(
"res.partner.department",
"parent_id",
"Child departments",
oldname="children")
"Child departments")
parent_left = fields.Integer(index=True)
parent_right = fields.Integer(index=True)

4
partner_contact_department/tests/test_recursion.py

@ -1,8 +1,8 @@
# -*- coding: utf-8 -*-
# © 2016 Tecnativa - Vicent Cubells
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl-3.0).
from openerp.tests import common
from openerp.exceptions import ValidationError
from odoo.tests import common
from odoo.exceptions import ValidationError
class TestRecursion(common.SavepointCase):

5
partner_contact_department/views/res_partner_department_view.xml

@ -1,7 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- © 2014-2015 Tecnativa S.L. - Jairo Llopis
© 2016 Tecnativa S.L. - Vicent Cubells
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -->
<odoo>
@ -39,6 +36,6 @@
<menuitem action="res_partner_department_action"
id="menu_res_partner_department"
parent="base.menu_config_address_book"/>
parent="sales_team.menu_config_address_book"/>
</odoo>

3
partner_contact_department/views/res_partner_view.xml

@ -1,7 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- © 2014-2015 Tecnativa S.L. - Jairo Llopis
© 2016 Tecnativa S.L. - Vicent Cubells
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -->
<odoo>

Loading…
Cancel
Save