Skip to content

Commit

Permalink
[MIG] partner_contact_department: Migration to 11.0
Browse files Browse the repository at this point in the history
  • Loading branch information
MiquelRForgeFlow committed Aug 29, 2018
1 parent 22656b8 commit 3aa97f5
Show file tree
Hide file tree
Showing 12 changed files with 37 additions and 24 deletions.
18 changes: 10 additions & 8 deletions partner_contact_department/README.rst
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -17,7 +17,7 @@ Configuration

To configure departments, you need to:

* Go to *Sales > Configuration > Address Book > Departments*.
* Go to *Contacts > Configuration > Address Book > Departments*.

Usage
=====
Expand All @@ -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
===========
Expand All @@ -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
------------
Expand All @@ -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
----------

Expand Down
3 changes: 0 additions & 3 deletions partner_contact_department/__init__.py
Original file line number Diff line number Diff line change
@@ -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 changes: 3 additions & 4 deletions partner_contact_department/__manifest__.py
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
# -*- 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)',
"license": "AGPL-3",
'website': 'http://www.tecnativa.com',
"application": False,
'depends': [
'sales_team',
'contacts',
],
'data': [
'security/ir.model.access.csv',
Expand Down
3 changes: 0 additions & 3 deletions partner_contact_department/models/__init__.py
Original file line number Diff line number Diff line change
@@ -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 changes: 1 addition & 2 deletions partner_contact_department/models/res_partner.py
Original file line number Diff line number Diff line change
@@ -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


Expand Down
7 changes: 7 additions & 0 deletions partner_contact_department/readme/CONFIGURE.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
To configure departments, you need to:

* Go to *Contacts > Configuration > Address Book > Departments*.

.. figure:: path/to/local/image.png
:alt: alternative description
:width: 600 px
6 changes: 6 additions & 0 deletions partner_contact_department/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -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 changes: 5 additions & 0 deletions partner_contact_department/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -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 changes: 4 additions & 0 deletions partner_contact_department/readme/USAGE.rst
Original file line number Diff line number Diff line change
@@ -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 changes: 0 additions & 2 deletions partner_contact_department/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -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 change: 0 additions & 1 deletion partner_contact_department/tests/test_recursion.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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>

0 comments on commit 3aa97f5

Please sign in to comment.