From b79d4cabe2ddadad1efea81b8dc89a95432b7518 Mon Sep 17 00:00:00 2001
From: Raf Ven
Date: Wed, 28 Apr 2021 16:19:48 +0200
Subject: [PATCH] [MIG] partner_multi_relation: Migration to 14.0
---
partner_multi_relation/README.rst | 13 ++++++++-----
partner_multi_relation/models/res_partner.py | 2 +-
partner_multi_relation/readme/CONTRIBUTORS.rst | 3 +++
.../static/description/index.html | 10 +++++++---
partner_multi_relation/views/menu.xml | 11 +++++------
partner_multi_relation/views/res_partner.xml | 14 +++++++-------
.../odoo/addons/partner_multi_relation | 1 +
setup/partner_multi_relation/setup.py | 6 ++++++
8 files changed, 38 insertions(+), 22 deletions(-)
create mode 120000 setup/partner_multi_relation/odoo/addons/partner_multi_relation
create mode 100644 setup/partner_multi_relation/setup.py
diff --git a/partner_multi_relation/README.rst b/partner_multi_relation/README.rst
index aabd8c573..e273c8e1a 100644
--- a/partner_multi_relation/README.rst
+++ b/partner_multi_relation/README.rst
@@ -14,13 +14,13 @@ Partner Relations
: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/13.0/partner_multi_relation
+ :target: https://github.com/OCA/partner-contact/tree/14.0/partner_multi_relation
: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-13-0/partner-contact-13-0-partner_multi_relation
+ :target: https://translation.odoo-community.org/projects/partner-contact-14-0/partner-contact-14-0-partner_multi_relation
: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/13.0
+ :target: https://runbot.odoo-community.org/runbot/134/14.0
:alt: Try me on Runbot
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -148,7 +148,7 @@ 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 `_.
+`feedback `_.
Do not contact contributors directly about support or help with technical issues.
@@ -172,6 +172,9 @@ Contributors
* Adriana Ierfino
* Numigi (tm) and all its contributors (https://bit.ly/numigiens)
* Radovan Skolnik , KEMA SK s.r.o. (https://www.kema.sk)
+* `DynApps NV `_:
+
+ * Raf Ven
Maintainers
~~~~~~~~~~~
@@ -186,6 +189,6 @@ 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.
+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/models/res_partner.py b/partner_multi_relation/models/res_partner.py
index 14fb57278..ab7b68972 100644
--- a/partner_multi_relation/models/res_partner.py
+++ b/partner_multi_relation/models/res_partner.py
@@ -24,7 +24,7 @@ class ResPartner(models.Model):
inverse_name="this_partner_id",
string="All relations with current partner",
auto_join=True,
- selectable=False,
+ search=False,
copy=False,
)
search_relation_type_id = fields.Many2one(
diff --git a/partner_multi_relation/readme/CONTRIBUTORS.rst b/partner_multi_relation/readme/CONTRIBUTORS.rst
index b5cede3b0..e0953da8b 100644
--- a/partner_multi_relation/readme/CONTRIBUTORS.rst
+++ b/partner_multi_relation/readme/CONTRIBUTORS.rst
@@ -6,3 +6,6 @@
* Adriana Ierfino
* Numigi (tm) and all its contributors (https://bit.ly/numigiens)
* Radovan Skolnik , KEMA SK s.r.o. (https://www.kema.sk)
+* `DynApps NV `_:
+
+ * Raf Ven
diff --git a/partner_multi_relation/static/description/index.html b/partner_multi_relation/static/description/index.html
index 1041df09c..3361230c1 100644
--- a/partner_multi_relation/static/description/index.html
+++ b/partner_multi_relation/static/description/index.html
@@ -367,7 +367,7 @@ ul.auto-toc {
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
-
+
This module aims to provide generic means to model relations between partners.
Examples would be ‘is sibling of’ or ‘is friend of’, but also ‘has contract X
with’ or ‘is assistant of’. This way, you can encode your knowledge about your
@@ -477,7 +477,7 @@ is to search for partners having a relation with Colleen.
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.
+feedback.
Do not contact contributors directly about support or help with technical issues.
@@ -509,7 +513,7 @@ If you spotted it first, help us smashing it by providing a detailed and welcome
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.
+
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/views/menu.xml b/partner_multi_relation/views/menu.xml
index fb078faed..189bfbeac 100644
--- a/partner_multi_relation/views/menu.xml
+++ b/partner_multi_relation/views/menu.xml
@@ -12,12 +12,11 @@
parent="menu_res_partner_relation"
action="action_res_partner_relation_all"
/>
-
+
+ Partner Relations Types
+ res.partner.relation.type
+ tree,form
+