From 6bda18d46ae997383f11d768969e709e1e75621f Mon Sep 17 00:00:00 2001 From: Ronald Portier Date: Mon, 26 Nov 2018 07:58:14 +0100 Subject: [PATCH] [IMP] partner_multi_relation_tabs. 11.0 migration. --- partner_multi_relation_tabs/README.rst | 94 ++-- partner_multi_relation_tabs/__init__.py | 1 - partner_multi_relation_tabs/__manifest__.py | 7 +- .../models/__init__.py | 2 - .../models/res_partner.py | 1 - .../models/res_partner_relation_all.py | 1 - .../models/res_partner_relation_type.py | 1 - .../res_partner_relation_type_selection.py | 7 +- .../models/res_partner_tab.py | 1 - .../readme/CONTRIBUTORS.rst | 5 + .../readme/DESCRIPTION.rst | 9 + .../static/description/index.html | 429 ++++++++++++++++++ .../tablib/__init__.py | 2 - partner_multi_relation_tabs/tablib/tab.py | 1 - partner_multi_relation_tabs/tests/__init__.py | 1 - partner_multi_relation_tabs/tests/common.py | 1 - .../tests/test_partner_tabs.py | 1 - partner_multi_relation_tabs/tests/test_tab.py | 1 - partner_multi_relation_tabs/views/menu.xml | 2 +- .../views/res_partner_tab.xml | 27 +- 20 files changed, 529 insertions(+), 65 deletions(-) create mode 100644 partner_multi_relation_tabs/readme/CONTRIBUTORS.rst create mode 100644 partner_multi_relation_tabs/readme/DESCRIPTION.rst create mode 100644 partner_multi_relation_tabs/static/description/index.html diff --git a/partner_multi_relation_tabs/README.rst b/partner_multi_relation_tabs/README.rst index b74ef9700..c10c5b5df 100644 --- a/partner_multi_relation_tabs/README.rst +++ b/partner_multi_relation_tabs/README.rst @@ -1,42 +1,65 @@ -.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg - :target: http://www.gnu.org/licenses/agpl - :alt: License: AGPL-3 - -======================== -Partner Relations in tab -======================== - -This module adds the possibility to show certain partner relations in its own -tab instead of the list of all relations. This can be useful if certain -relation types are regularly used and should be overseeable at a glace. - - -Usage -===== - -To use this module, you need to: - -#. Go 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/partner-contact/10.0 - +================================= +Show partner relations in own tab +================================= + +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png + :target: https://odoo-community.org/page/development-status + :alt: Beta +.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 +.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fpartner--contact-lightgray.png?logo=github + :target: https://github.com/OCA/partner-contact/tree/11.0/partner_multi_relation_tabs + :alt: OCA/partner-contact +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/partner-contact-11-0/partner-contact-11-0-partner_multi_relation_tabs + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png + :target: https://runbot.odoo-community.org/runbot/134/11.0 + :alt: Try me on Runbot + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module adds the possibility to show certain partner relations in a +tab on the partner form, in addition to in the list of all relations. + +This can be useful if certain relation types are regularly used and should +be overseeable at a glace. + +For instance you can make a tab named 'board' that will show all the board +members of a company, by showing the relations of types ceo, cto, cfo and +board member. + +**Table of contents** + +.. contents:: + :local: Bug Tracker =========== -Bugs are tracked on `GitHub Issues -`_. In case of trouble, please -check there if your issue has already been reported. If you spotted it first, -help us smash it by providing detailed and welcomed feedback. +Bugs are tracked on `GitHub Issues `_. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us smashing it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. Credits ======= +Authors +~~~~~~~ + +* Therp BV Contributors ------------- +~~~~~~~~~~~~ * Holger Brunn * Alexandre Fayolle @@ -44,20 +67,19 @@ Contributors * Ronald Portier * George Daramouskas -Do not contact contributors directly about support or help with technical issues. - +Maintainers +~~~~~~~~~~~ -Maintainer ----------- +This module is maintained by the OCA. .. image:: https://odoo-community.org/logo.png :alt: Odoo Community Association :target: https://odoo-community.org -This module is maintained by the OCA. - OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use. -To contribute to this module, please visit https://odoo-community.org. +This module is part of the `OCA/partner-contact `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/partner_multi_relation_tabs/__init__.py b/partner_multi_relation_tabs/__init__.py index 82d5bfd41..81ee77b9d 100644 --- a/partner_multi_relation_tabs/__init__.py +++ b/partner_multi_relation_tabs/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). from . import tablib from . import models diff --git a/partner_multi_relation_tabs/__manifest__.py b/partner_multi_relation_tabs/__manifest__.py index 9dbe76e90..6db941831 100644 --- a/partner_multi_relation_tabs/__manifest__.py +++ b/partner_multi_relation_tabs/__manifest__.py @@ -1,15 +1,14 @@ -# -*- coding: utf-8 -*- -# Copyright 2014-2018 Therp BV +# Copyright 2014-2018 Therp BV .[:w + # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). { "name": "Show partner relations in own tab", - "version": "10.0.1.0.0", + "version": "11.0.1.0.0", "author": "Therp BV,Odoo Community Association (OCA)", "license": "AGPL-3", "complexity": "normal", "category": "Customer Relationship Management", "depends": [ - 'web_tree_many2one_clickable', 'partner_multi_relation', ], "demo": [ diff --git a/partner_multi_relation_tabs/models/__init__.py b/partner_multi_relation_tabs/models/__init__.py index 7c93bed9a..e62aef72f 100644 --- a/partner_multi_relation_tabs/models/__init__.py +++ b/partner_multi_relation_tabs/models/__init__.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- -# Copyright 2014-2017 Therp BV # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from . import res_partner_tab from . import res_partner_relation_type diff --git a/partner_multi_relation_tabs/models/res_partner.py b/partner_multi_relation_tabs/models/res_partner.py index d8c969d7f..cdf99b4a9 100644 --- a/partner_multi_relation_tabs/models/res_partner.py +++ b/partner_multi_relation_tabs/models/res_partner.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright 2014-2018 Therp BV . # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). # pylint: disable=no-member diff --git a/partner_multi_relation_tabs/models/res_partner_relation_all.py b/partner_multi_relation_tabs/models/res_partner_relation_all.py index 40f9de298..b15eb0447 100644 --- a/partner_multi_relation_tabs/models/res_partner_relation_all.py +++ b/partner_multi_relation_tabs/models/res_partner_relation_all.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright 2014-2018 Therp BV . # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). from odoo import api, fields, models diff --git a/partner_multi_relation_tabs/models/res_partner_relation_type.py b/partner_multi_relation_tabs/models/res_partner_relation_type.py index 27d83c159..71b740c03 100644 --- a/partner_multi_relation_tabs/models/res_partner_relation_type.py +++ b/partner_multi_relation_tabs/models/res_partner_relation_type.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright 2014-2017 Therp BV # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). # pylint: disable=no-self-use diff --git a/partner_multi_relation_tabs/models/res_partner_relation_type_selection.py b/partner_multi_relation_tabs/models/res_partner_relation_type_selection.py index c05b4f928..deac55a5a 100644 --- a/partner_multi_relation_tabs/models/res_partner_relation_type_selection.py +++ b/partner_multi_relation_tabs/models/res_partner_relation_type_selection.py @@ -1,7 +1,6 @@ -# -*- coding: utf-8 -*- -# Copyright 2013-2017 Therp BV -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -from openerp import fields, models +# Copyright 2013-2018 Therp BV . +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). +from odoo import fields, models class ResPartnerRelationTypeSelection(models.Model): diff --git a/partner_multi_relation_tabs/models/res_partner_tab.py b/partner_multi_relation_tabs/models/res_partner_tab.py index 84d21bf6e..6c71671b9 100644 --- a/partner_multi_relation_tabs/models/res_partner_tab.py +++ b/partner_multi_relation_tabs/models/res_partner_tab.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright 2017-2018 Therp BV . # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). from odoo import _, api, fields, models diff --git a/partner_multi_relation_tabs/readme/CONTRIBUTORS.rst b/partner_multi_relation_tabs/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000..e26dd7ee6 --- /dev/null +++ b/partner_multi_relation_tabs/readme/CONTRIBUTORS.rst @@ -0,0 +1,5 @@ +* Holger Brunn +* Alexandre Fayolle +* Stéphane Bidoul +* Ronald Portier +* George Daramouskas diff --git a/partner_multi_relation_tabs/readme/DESCRIPTION.rst b/partner_multi_relation_tabs/readme/DESCRIPTION.rst new file mode 100644 index 000000000..81e8d227f --- /dev/null +++ b/partner_multi_relation_tabs/readme/DESCRIPTION.rst @@ -0,0 +1,9 @@ +This module adds the possibility to show certain partner relations in a +tab on the partner form, in addition to in the list of all relations. + +This can be useful if certain relation types are regularly used and should +be overseeable at a glace. + +For instance you can make a tab named 'board' that will show all the board +members of a company, by showing the relations of types ceo, cto, cfo and +board member. diff --git a/partner_multi_relation_tabs/static/description/index.html b/partner_multi_relation_tabs/static/description/index.html new file mode 100644 index 000000000..b75d3ee57 --- /dev/null +++ b/partner_multi_relation_tabs/static/description/index.html @@ -0,0 +1,429 @@ + + + + + + +Show partner relations in own tab + + + +
+

Show partner relations in own tab

+ + +

Beta License: AGPL-3 OCA/partner-contact Translate me on Weblate Try me on Runbot

+

This module adds the possibility to show certain partner relations in a +tab on the partner form, in addition to in the list of all relations.

+

This can be useful if certain relation types are regularly used and should +be overseeable at a glace.

+

For instance you can make a tab named ‘board’ that will show all the board +members of a company, by showing the relations of types ceo, cto, cfo and +board member.

+

Table of contents

+ +
+

Bug Tracker

+

Bugs are tracked on GitHub Issues. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us smashing it by providing a detailed and welcomed +feedback.

+

Do not contact contributors directly about support or help with technical issues.

+
+
+

Credits

+
+

Authors

+
    +
  • Therp BV
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

This module is maintained by the OCA.

+Odoo Community Association +

OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use.

+

This module is part of the OCA/partner-contact project on GitHub.

+

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

+
+
+
+ + diff --git a/partner_multi_relation_tabs/tablib/__init__.py b/partner_multi_relation_tabs/tablib/__init__.py index 68740b22c..00bb9564a 100644 --- a/partner_multi_relation_tabs/tablib/__init__.py +++ b/partner_multi_relation_tabs/tablib/__init__.py @@ -1,4 +1,2 @@ -# -*- coding: utf-8 -*- -# Copyright 2018 Therp BV . # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from .tab import Tab diff --git a/partner_multi_relation_tabs/tablib/tab.py b/partner_multi_relation_tabs/tablib/tab.py index 3f4657d16..071fe35bb 100644 --- a/partner_multi_relation_tabs/tablib/tab.py +++ b/partner_multi_relation_tabs/tablib/tab.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright 2014-2018 Therp BV . # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). import logging diff --git a/partner_multi_relation_tabs/tests/__init__.py b/partner_multi_relation_tabs/tests/__init__.py index 1c8fd5840..3b747256c 100644 --- a/partner_multi_relation_tabs/tests/__init__.py +++ b/partner_multi_relation_tabs/tests/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). from . import common from . import test_partner_tabs diff --git a/partner_multi_relation_tabs/tests/common.py b/partner_multi_relation_tabs/tests/common.py index 5e43db29b..0ee75ec47 100644 --- a/partner_multi_relation_tabs/tests/common.py +++ b/partner_multi_relation_tabs/tests/common.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright 2014-2018 Therp BV . # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). from odoo.tests import common diff --git a/partner_multi_relation_tabs/tests/test_partner_tabs.py b/partner_multi_relation_tabs/tests/test_partner_tabs.py index 0bdbb8cc6..0b56b1261 100644 --- a/partner_multi_relation_tabs/tests/test_partner_tabs.py +++ b/partner_multi_relation_tabs/tests/test_partner_tabs.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright 2014-2018 Therp BV . # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). from lxml import etree diff --git a/partner_multi_relation_tabs/tests/test_tab.py b/partner_multi_relation_tabs/tests/test_tab.py index 276411dbc..fd82abbf2 100644 --- a/partner_multi_relation_tabs/tests/test_tab.py +++ b/partner_multi_relation_tabs/tests/test_tab.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright 2018 Therp BV . # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). from . import common diff --git a/partner_multi_relation_tabs/views/menu.xml b/partner_multi_relation_tabs/views/menu.xml index 0859c9159..97eb9caac 100644 --- a/partner_multi_relation_tabs/views/menu.xml +++ b/partner_multi_relation_tabs/views/menu.xml @@ -10,7 +10,7 @@ diff --git a/partner_multi_relation_tabs/views/res_partner_tab.xml b/partner_multi_relation_tabs/views/res_partner_tab.xml index db1d1170e..4a2d5beed 100644 --- a/partner_multi_relation_tabs/views/res_partner_tab.xml +++ b/partner_multi_relation_tabs/views/res_partner_tab.xml @@ -15,12 +15,27 @@ res.partner.tab
- - - - - - + + + + + + + + + + +