Browse Source

[ADD] Readme folder.

pull/649/head
David 6 years ago
parent
commit
63d8afbfca
  1. 24
      partner_nav_to_contacts/README.md
  2. 10
      partner_nav_to_contacts/__manifest__.py
  3. 8
      partner_nav_to_contacts/models/res_partner.py
  4. 3
      partner_nav_to_contacts/readme/CONTRIBUTORS.rst
  5. 4
      partner_nav_to_contacts/readme/DESCRIPTION.rst
  6. 6
      partner_nav_to_contacts/readme/USAGE.rst
  7. 4
      partner_nav_to_contacts/views/inherit_res_partner_views.xml

24
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.

10
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',

8
partner_nav_to_contacts/models/res_partner.py

@ -1,8 +1,6 @@
# -*- coding: utf-8 -*-
# SDI
# © 2012-2015 David Juaneda <djuaneda@sdi.es>
# © 2018 David Juaneda <djuaneda@sdi.es>
# 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',

3
partner_nav_to_contacts/readme/CONTRIBUTORS.rst

@ -0,0 +1,3 @@
* `SDI <https://www.sdi.es>`_:
* David Juaneda

4
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.

6
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.

4
partner_nav_to_contacts/views/inherit_res_partner_views.xml

@ -2,8 +2,8 @@
<odoo>
<!--
Mofificación de vista formulario de cliente para poder navegar desde la empresa
a sus contactos.
Form view of customer to be able to navigate from the company
to its contacts.
-->
<record id="view_partner_form" model="ir.ui.view">
<field name="name">res.partner.form.inherit.nav2contacts</field>

Loading…
Cancel
Save