diff --git a/partner_nav_to_contacts/README.md b/partner_nav_to_contacts/README.md index d850873b9..21cd7854d 100644 --- a/partner_nav_to_contacts/README.md +++ b/partner_nav_to_contacts/README.md @@ -1,13 +1,21 @@ +**This file is going to be generated by oca-gen-addon-readme.** -sdi_crm -------- -------- +*Manual changes will be overwritten.* -Desarrollo SDI del módulo CRM de ODOO. +Please provide content in the ``readme`` directory: -Team: Darío, Javier Izco, David Juaneda, Javier García. +* **DESCRIPTION.rst** (required) +* INSTALL.rst (optional) +* CONFIGURE.rst (optional) +* **USAGE.rst** (optional, highly recommended) +* DEVELOP.rst (optional) +* ROADMAP.rst (optional) +* HISTORY.rst (optional, recommended) +* **CONTRIBUTORS.rst** (optional, highly recommended) +* CREDITS.rst (optional) +Content of this README will also be drawn from the addon manifest, +from keys such as name, authors, maintainers, development_status, +and license. -Función: - -Permitir dirigirnos desde un cliente que sea empresa a sus contactos. +A good, one sentence summary in the manifest is also highly recommended. diff --git a/partner_nav_to_contacts/__manifest__.py b/partner_nav_to_contacts/__manifest__.py index 6656eda59..0137d5ac4 100644 --- a/partner_nav_to_contacts/__manifest__.py +++ b/partner_nav_to_contacts/__manifest__.py @@ -3,11 +3,13 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). { 'name': "SDi-CRM: nav to contacts", - 'version': '11.0.1.0.1', - 'category': '', - 'author': 'David Juaneda', + 'version': '11.0.1.0.0', + 'development_status': 'Beta', + 'category': 'Partners', + 'website': 'https://github.com/OCA/social', + 'author': 'SDi, David Juaneda, Odoo Community Association (OCA)', 'summary': """ - Add navigation from customers to your contacts.""", + Add navigation from customers to its contacts.""", 'license': 'AGPL-3', 'depends': [ 'contacts', diff --git a/partner_nav_to_contacts/models/res_partner.py b/partner_nav_to_contacts/models/res_partner.py index 12ceeac93..9da02eac9 100644 --- a/partner_nav_to_contacts/models/res_partner.py +++ b/partner_nav_to_contacts/models/res_partner.py @@ -1,8 +1,6 @@ -# -*- coding: utf-8 -*- # SDI -# © 2012-2015 David Juaneda +# © 2018 David Juaneda # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). - from odoo import api, fields, models @@ -13,7 +11,9 @@ class Partner(models.Model): @api.multi def open_commercial_partner(self): - """ Utility method used to add an "Open Company" button in partner views """ + """ + It redirects us to the contact form view. + """ self.ensure_one() return {'type': 'ir.actions.act_window', 'res_model': 'res.partner', diff --git a/partner_nav_to_contacts/readme/CONTRIBUTORS.rst b/partner_nav_to_contacts/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000..103b38e90 --- /dev/null +++ b/partner_nav_to_contacts/readme/CONTRIBUTORS.rst @@ -0,0 +1,3 @@ +* `SDI `_: + + * David Juaneda \ No newline at end of file diff --git a/partner_nav_to_contacts/readme/DESCRIPTION.rst b/partner_nav_to_contacts/readme/DESCRIPTION.rst new file mode 100644 index 000000000..372e24c5f --- /dev/null +++ b/partner_nav_to_contacts/readme/DESCRIPTION.rst @@ -0,0 +1,4 @@ +This module allows you to navigate from the contact form view (companies) to its contacts. + +The contact's name is a link that, when you click on it, shows us the information of that contact. + diff --git a/partner_nav_to_contacts/readme/USAGE.rst b/partner_nav_to_contacts/readme/USAGE.rst new file mode 100644 index 000000000..4e568b267 --- /dev/null +++ b/partner_nav_to_contacts/readme/USAGE.rst @@ -0,0 +1,6 @@ +To navigate from a customer or supplier to its contacts, +the name of the contact in the kanban card of each contact +in the contacts and addresses tab in the form view of the source contact is a link +that when clicked on it, shows us the information of the selected contact. + +To return to the form with the data of the source contact, you just have to retrace the path of the bread crumbs. \ No newline at end of file diff --git a/partner_nav_to_contacts/views/inherit_res_partner_views.xml b/partner_nav_to_contacts/views/inherit_res_partner_views.xml index 8baa5b4a1..038aaac30 100644 --- a/partner_nav_to_contacts/views/inherit_res_partner_views.xml +++ b/partner_nav_to_contacts/views/inherit_res_partner_views.xml @@ -2,8 +2,8 @@ res.partner.form.inherit.nav2contacts