From 42452ac65b5d609c3d983e99f47ca100a16140bf Mon Sep 17 00:00:00 2001 From: ernesto Date: Thu, 23 May 2019 10:16:59 -0400 Subject: [PATCH] [MIG] partner_contact_job_position: Migration to 12.0 --- partner_contact_job_position/README.rst | 23 +++++----- partner_contact_job_position/__manifest__.py | 2 +- .../models/res_partner.py | 15 +------ .../readme/CONFIGURE.rst | 4 -- .../readme/CONTRIBUTORS.rst | 9 ++-- .../security/ir.model.access.csv | 4 +- .../static/description/index.html | 44 +++++++++++++++---- .../views/res_partner_job_position_view.xml | 3 -- .../views/res_partner_view.xml | 2 +- 9 files changed, 57 insertions(+), 49 deletions(-) diff --git a/partner_contact_job_position/README.rst b/partner_contact_job_position/README.rst index 18cbad9dc..ec8723e07 100644 --- a/partner_contact_job_position/README.rst +++ b/partner_contact_job_position/README.rst @@ -14,13 +14,13 @@ Partner Job Position :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_contact_job_position + :target: https://github.com/OCA/partner-contact/tree/12.0/partner_contact_job_position :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_contact_job_position + :target: https://translation.odoo-community.org/projects/partner-contact-12-0/partner-contact-12-0-partner_contact_job_position :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 + :target: https://runbot.odoo-community.org/runbot/134/12.0 :alt: Try me on Runbot |badge1| |badge2| |badge3| |badge4| |badge5| @@ -42,10 +42,6 @@ To configure job positions, you need to: * Go to *Contacts > Configuration > Job Positions*. -.. figure:: https://raw.githubusercontent.com/OCA/partner-contact/11.0/partner_contact_job_position/path/to/local/image.png - :alt: alternative description - :width: 600 px - Usage ===== @@ -60,7 +56,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. @@ -75,11 +71,14 @@ Authors Contributors ~~~~~~~~~~~~ -* Pedro M. Baeza * Antonio Espinosa -* Rafael Blasco * Jairo Llopis -* David Vidal +* `Tecnativa `_: + + * Pedro M. Baeza + * Rafael Blasco + * David Vidal + * Ernesto Tejeda Maintainers ~~~~~~~~~~~ @@ -94,6 +93,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_contact_job_position/__manifest__.py b/partner_contact_job_position/__manifest__.py index 4380aa248..d78c8f93e 100644 --- a/partner_contact_job_position/__manifest__.py +++ b/partner_contact_job_position/__manifest__.py @@ -7,7 +7,7 @@ { "name": "Partner Job Position", "summary": "Categorize job positions for contacts", - "version": "11.0.1.0.0", + "version": "12.0.1.0.0", 'category': 'Customer Relationship Management', "website": "https://github.com/OCA/partner-contact", 'author': 'Tecnativa,' diff --git a/partner_contact_job_position/models/res_partner.py b/partner_contact_job_position/models/res_partner.py index f16a4dccf..a3a8072e6 100644 --- a/partner_contact_job_position/models/res_partner.py +++ b/partner_contact_job_position/models/res_partner.py @@ -11,24 +11,11 @@ class ResPartner(models.Model): job_position_id = fields.Many2one( "res.partner.job_position", - "Categorized job position",) + "Categorized job position") class ResPartnerJobPosition(models.Model): _name = "res.partner.job_position" - _order = "parent_left" - _parent_order = "name" - _parent_store = True _description = "Job position" name = fields.Char(required=True, translate=True) - parent_id = fields.Many2one( - "res.partner.job_position", - "Parent", ondelete='restrict') - child_ids = fields.One2many( - "res.partner.job_position", - "parent_id", - "Children", - oldname="children") - parent_left = fields.Integer(index=True) - parent_right = fields.Integer(index=True) diff --git a/partner_contact_job_position/readme/CONFIGURE.rst b/partner_contact_job_position/readme/CONFIGURE.rst index d96afd86c..797b249a0 100644 --- a/partner_contact_job_position/readme/CONFIGURE.rst +++ b/partner_contact_job_position/readme/CONFIGURE.rst @@ -1,7 +1,3 @@ To configure job positions, you need to: * Go to *Contacts > Configuration > Job Positions*. - -.. figure:: path/to/local/image.png - :alt: alternative description - :width: 600 px diff --git a/partner_contact_job_position/readme/CONTRIBUTORS.rst b/partner_contact_job_position/readme/CONTRIBUTORS.rst index 13acbdea0..9476a4021 100644 --- a/partner_contact_job_position/readme/CONTRIBUTORS.rst +++ b/partner_contact_job_position/readme/CONTRIBUTORS.rst @@ -1,5 +1,8 @@ -* Pedro M. Baeza * Antonio Espinosa -* Rafael Blasco * Jairo Llopis -* David Vidal +* `Tecnativa `_: + + * Pedro M. Baeza + * Rafael Blasco + * David Vidal + * Ernesto Tejeda diff --git a/partner_contact_job_position/security/ir.model.access.csv b/partner_contact_job_position/security/ir.model.access.csv index 93930fc92..3927e28f9 100644 --- a/partner_contact_job_position/security/ir.model.access.csv +++ b/partner_contact_job_position/security/ir.model.access.csv @@ -1,5 +1,5 @@ "id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink" "access_res_partner_job_position_public","res_partner_job_position group_public","model_res_partner_job_position","base.group_public",1,0,0,0 "access_res_partner_job_position_portal","res_partner_job_position group_portal","model_res_partner_job_position","base.group_portal",1,0,0,0 -"access_res_partner_job_position_group_partner_manager","res_partner_job_position group_partner_manager","model_res_partner_job_position","base.group_partner_manager",1,1,1,1 -"access_res_partner_job_position_group_user","res_partner_job_position group_user","model_res_partner_job_position","base.group_user",1,0,0,0 +"access_res_partner_job_position_partner_manager","res_partner_job_position group_partner_manager","model_res_partner_job_position","base.group_partner_manager",1,1,1,1 +"access_res_partner_job_position_user","res_partner_job_position group_user","model_res_partner_job_position","base.group_user",1,0,0,0 diff --git a/partner_contact_job_position/static/description/index.html b/partner_contact_job_position/static/description/index.html index 409086029..ce9799ae3 100644 --- a/partner_contact_job_position/static/description/index.html +++ b/partner_contact_job_position/static/description/index.html @@ -367,7 +367,27 @@ ul.auto-toc { !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

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

+

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

This module extends the functionality of partners job position to support having them categorized in tree form and allow you to choose a categorized job position for your contacts in addition to the current custom string for job @@ -392,9 +412,6 @@ position.

  • Go to Contacts > Configuration > Job Positions.
-
-alternative description -

Usage

@@ -409,7 +426,9 @@ position.

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.

@@ -423,11 +442,16 @@ If you spotted it first, help us smashing it by providing a detailed and welcome

Contributors

@@ -437,7 +461,9 @@ 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_contact_job_position/views/res_partner_job_position_view.xml b/partner_contact_job_position/views/res_partner_job_position_view.xml index 1a8e46a02..cfd72caf4 100644 --- a/partner_contact_job_position/views/res_partner_job_position_view.xml +++ b/partner_contact_job_position/views/res_partner_job_position_view.xml @@ -14,7 +14,6 @@ - @@ -26,8 +25,6 @@
- -
diff --git a/partner_contact_job_position/views/res_partner_view.xml b/partner_contact_job_position/views/res_partner_view.xml index 1bec01b47..8a5180bd8 100644 --- a/partner_contact_job_position/views/res_partner_view.xml +++ b/partner_contact_job_position/views/res_partner_view.xml @@ -31,7 +31,7 @@