Browse Source

[MIG] partner_contact_department: Migration to 11.0

pull/620/head
mreficent 7 years ago
parent
commit
73ee319ee6
  1. 18
      partner_contact_department/README.rst
  2. 3
      partner_contact_department/__init__.py
  3. 7
      partner_contact_department/__manifest__.py
  4. 3
      partner_contact_department/models/__init__.py
  5. 3
      partner_contact_department/models/res_partner.py
  6. 7
      partner_contact_department/readme/CONFIGURE.rst
  7. 6
      partner_contact_department/readme/CONTRIBUTORS.rst
  8. 5
      partner_contact_department/readme/DESCRIPTION.rst
  9. 4
      partner_contact_department/readme/USAGE.rst
  10. 2
      partner_contact_department/tests/__init__.py
  11. 1
      partner_contact_department/tests/test_recursion.py
  12. 2
      partner_contact_department/views/res_partner_department_view.xml

18
partner_contact_department/README.rst

@ -1,10 +1,10 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
.. image:: https://img.shields.io/badge/license-AGPL--3-blue.png
:target: https://www.gnu.org/licenses/agpl
:alt: License: AGPL-3
==================
Contact department
==================
==========================
Partner Contact Department
==========================
This module extends the functionality of the address book to support
departments.
@ -17,7 +17,7 @@ Configuration
To configure departments, you need to:
* Go to *Sales > Configuration > Address Book > Departments*.
* Go to *Contacts > Configuration > Departments*.
Usage
=====
@ -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/10.0
:target: https://runbot.odoo-community.org/runbot/134/11.0
Bug Tracker
===========
@ -45,7 +45,7 @@ Credits
Images
------
* Odoo Community Association: `Icon <https://github.com/OCA/maintainer-tools/blob/master/template/module/static/description/icon.svg>`_.
* Odoo Community Association: `Icon <https://odoo-community.org/logo.png>`_.
Contributors
------------
@ -57,6 +57,8 @@ Contributors
* Vicent Cubells <vicent.cubells@tecnativa.com>
* David Vidal <david.vidal@tecnativa.com>
Do not contact contributors directly about support or help with technical issues.
Maintainer
----------

3
partner_contact_department/__init__.py

@ -1,6 +1,3 @@
# -*- coding: 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).
from . import models

7
partner_contact_department/__manifest__.py

@ -1,13 +1,12 @@
# -*- coding: utf-8 -*-
# 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',
'name': 'Partner Contact Department',
"summary": "Assign contacts to departments",
'version': '10.0.1.0.0',
'version': '11.0.1.0.0',
'category': 'Customer Relationship Management',
'author': 'Tecnativa, '
'Odoo Community Association (OCA)',
@ -15,7 +14,7 @@
'website': 'http://www.tecnativa.com',
"application": False,
'depends': [
'sales_team',
'contacts',
],
'data': [
'security/ir.model.access.csv',

3
partner_contact_department/models/__init__.py

@ -1,6 +1,3 @@
# -*- coding: 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).
from . import res_partner

3
partner_contact_department/models/res_partner.py

@ -1,9 +1,8 @@
# -*- coding: 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).
from odoo import models, fields, api, _
from odoo import api, fields, models, _
from odoo.exceptions import ValidationError

7
partner_contact_department/readme/CONFIGURE.rst

@ -0,0 +1,7 @@
To configure departments, you need to:
* Go to *Contacts > Configuration > Departments*.
.. figure:: path/to/local/image.png
:alt: alternative description
:width: 600 px

6
partner_contact_department/readme/CONTRIBUTORS.rst

@ -0,0 +1,6 @@
* 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>

5
partner_contact_department/readme/DESCRIPTION.rst

@ -0,0 +1,5 @@
This module extends the functionality of the address book to support
departments.
Department is a drop-down field in partner forms, and it refers to contact
department in its own company.

4
partner_contact_department/readme/USAGE.rst

@ -0,0 +1,4 @@
To use this module, you need to:
* Go to any partner's form.
* You will find the new *Department* field below *Job Position*.

2
partner_contact_department/tests/__init__.py

@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
# © 2016 Vicent Cubells
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl-3.0).
from . import test_recursion

1
partner_contact_department/tests/test_recursion.py

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

2
partner_contact_department/views/res_partner_department_view.xml

@ -36,6 +36,6 @@
<menuitem action="res_partner_department_action"
id="menu_res_partner_department"
parent="sales_team.menu_config_address_book"/>
parent="contacts.res_partner_menu_config"/>
</odoo>
Loading…
Cancel
Save