Skip to content

Commit

Permalink
Merge commit 'refs/pull/1649/head' of https://github.com/oca/partner-…
Browse files Browse the repository at this point in the history
…contact into 17.0-6888
  • Loading branch information
docker-odoo committed May 6, 2024
2 parents c0e7a75 + f6b8cac commit 5bea20c
Show file tree
Hide file tree
Showing 22 changed files with 849 additions and 0 deletions.
106 changes: 106 additions & 0 deletions partner_contact_access_link/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
===========================
Partner contact access link
===========================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:7d9f73845e19a0005e8d6e9e3b83c1243123ca99636694a36b2ea257a0b44bcc
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png
:target: https://odoo-community.org/page/development-status
:alt: Production/Stable
.. |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/17.0/partner_contact_access_link
: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-17-0/partner-contact-17-0-partner_contact_access_link
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/partner-contact&target_branch=17.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module extends the functionality of the partners form and to allow
you to click on a button and open the full contact form while watching a
company form.

**Table of contents**

.. contents::
:local:

Usage
=====

To use this module, you need to:

1. Go to *Contacts* (if you don't see the menu, you might need to
install the *Contacts* app, or go to any other module where you can
browse partners).

2. Select any contact that is a company and contains sub-contacts.

3. You will see a new little button next to each contact's name that you
can click to go to hers/his full form:

|image|

.. |image| image:: https://raw.githubusercontent.com/OCA/partner-contact/17.0/partner_contact_access_link/static/description/full-form.gif

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/partner-contact/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/partner-contact/issues/new?body=module:%20partner_contact_access_link%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

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

Credits
=======

Authors
-------

* Tecnativa

Contributors
------------

- Jairo Llopis (`Tecnativa <https://www.tecnativa.com/>`__)
- Harald Panten (`Sygel Technology <https://www.sygel.es/>`__)
- Tharathip Chaweewongphan <tharathipc@ecosoft.co.th>

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

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.

.. |maintainer-Yajo| image:: https://github.com/Yajo.png?size=40px
:target: https://github.com/Yajo
:alt: Yajo

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-Yajo|

This module is part of the `OCA/partner-contact <https://github.com/OCA/partner-contact/tree/17.0/partner_contact_access_link>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions partner_contact_access_link/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
17 changes: 17 additions & 0 deletions partner_contact_access_link/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Copyright 2020 Tecnativa - Jairo Llopis
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Partner contact access link",
"summary": "Allow to visit the full contact form from a company",
"version": "17.0.1.0.0",
"development_status": "Production/Stable",
"category": "Tools",
"website": "https://github.com/OCA/partner-contact",
"author": "Tecnativa, Odoo Community Association (OCA)",
"maintainers": ["Yajo"],
"license": "AGPL-3",
"application": False,
"installable": True,
"depends": ["base"],
"data": ["views/res_partner_views.xml"],
}
27 changes: 27 additions & 0 deletions partner_contact_access_link/i18n/ca.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * partner_contact_access_link
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 15.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2022-04-07 14:05+0000\n"
"Last-Translator: juliap98 <julia.paga@qubiq.es>\n"
"Language-Team: none\n"
"Language: ca\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.3.2\n"

#. module: partner_contact_access_link
#: model:ir.model,name:partner_contact_access_link.model_res_partner
msgid "Contact"
msgstr "Contacte"

#. module: partner_contact_access_link
#: model_terms:ir.ui.view,arch_db:partner_contact_access_link.view_partner_form
msgid "Open full form"
msgstr "Obre el formulari complet"
27 changes: 27 additions & 0 deletions partner_contact_access_link/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * partner_contact_access_link
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-08-31 08:13+0000\n"
"Last-Translator: Ivorra78 <informatica@totmaterial.es>\n"
"Language-Team: none\n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.17\n"

#. module: partner_contact_access_link
#: model:ir.model,name:partner_contact_access_link.model_res_partner
msgid "Contact"
msgstr "Contacto"

#. module: partner_contact_access_link
#: model_terms:ir.ui.view,arch_db:partner_contact_access_link.view_partner_form
msgid "Open full form"
msgstr "Abrir formulario completo"
27 changes: 27 additions & 0 deletions partner_contact_access_link/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * partner_contact_access_link
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-06-21 12:09+0000\n"
"Last-Translator: Rémi <remi@le-filament.com>\n"
"Language-Team: none\n"
"Language: fr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n > 1;\n"
"X-Generator: Weblate 4.17\n"

#. module: partner_contact_access_link
#: model:ir.model,name:partner_contact_access_link.model_res_partner
msgid "Contact"
msgstr ""

#. module: partner_contact_access_link
#: model_terms:ir.ui.view,arch_db:partner_contact_access_link.view_partner_form
msgid "Open full form"
msgstr "Ouvrir la fiche complète"
28 changes: 28 additions & 0 deletions partner_contact_access_link/i18n/hr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * partner_contact_access_link
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-02-15 19:22+0000\n"
"Last-Translator: Bole <bole@dajmi5.com>\n"
"Language-Team: none\n"
"Language: hr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
"X-Generator: Weblate 4.14.1\n"

#. module: partner_contact_access_link
#: model:ir.model,name:partner_contact_access_link.model_res_partner
msgid "Contact"
msgstr "Kontakt"

#. module: partner_contact_access_link
#: model_terms:ir.ui.view,arch_db:partner_contact_access_link.view_partner_form
msgid "Open full form"
msgstr "Otvori punu formu"
27 changes: 27 additions & 0 deletions partner_contact_access_link/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * partner_contact_access_link
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-12-27 11:42+0000\n"
"Last-Translator: mymage <stefano.consolaro@mymage.it>\n"
"Language-Team: none\n"
"Language: it\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.17\n"

#. module: partner_contact_access_link
#: model:ir.model,name:partner_contact_access_link.model_res_partner
msgid "Contact"
msgstr "Contatto"

#. module: partner_contact_access_link
#: model_terms:ir.ui.view,arch_db:partner_contact_access_link.view_partner_form
msgid "Open full form"
msgstr "Apri modulo completo"
24 changes: 24 additions & 0 deletions partner_contact_access_link/i18n/partner_contact_access_link.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * partner_contact_access_link
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: partner_contact_access_link
#: model:ir.model,name:partner_contact_access_link.model_res_partner
msgid "Contact"
msgstr ""

#. module: partner_contact_access_link
#: model_terms:ir.ui.view,arch_db:partner_contact_access_link.view_partner_form
msgid "Open full form"
msgstr ""
27 changes: 27 additions & 0 deletions partner_contact_access_link/i18n/pt_BR.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * partner_contact_access_link
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-12-28 23:41+0000\n"
"Last-Translator: Adriano Prado <adrianojprado@gmail.com>\n"
"Language-Team: none\n"
"Language: pt_BR\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n > 1;\n"
"X-Generator: Weblate 4.17\n"

#. module: partner_contact_access_link
#: model:ir.model,name:partner_contact_access_link.model_res_partner
msgid "Contact"
msgstr "Contato"

#. module: partner_contact_access_link
#: model_terms:ir.ui.view,arch_db:partner_contact_access_link.view_partner_form
msgid "Open full form"
msgstr "Abrir formulário completo"
1 change: 1 addition & 0 deletions partner_contact_access_link/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import res_partner
18 changes: 18 additions & 0 deletions partner_contact_access_link/models/res_partner.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Copyright 2020 Tecnativa - Jairo Llopis
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from odoo import models


class ResPartner(models.Model):
_inherit = "res.partner"

def open_child_form(self):
"""Open child contact form from the parent partner form view"""
return {
"type": "ir.actions.act_window",
"res_model": "res.partner",
"res_id": self.id,
"view_mode": "form",
"target": "current",
}
3 changes: 3 additions & 0 deletions partner_contact_access_link/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
3 changes: 3 additions & 0 deletions partner_contact_access_link/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- Jairo Llopis ([Tecnativa](https://www.tecnativa.com/))
- Harald Panten ([Sygel Technology](https://www.sygel.es/))
- Tharathip Chaweewongphan \<<tharathipc@ecosoft.co.th>\>
3 changes: 3 additions & 0 deletions partner_contact_access_link/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
This module extends the functionality of the partners form and to allow
you to click on a button and open the full contact form while watching a
company form.
12 changes: 12 additions & 0 deletions partner_contact_access_link/readme/USAGE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
To use this module, you need to:

1. Go to *Contacts* (if you don't see the menu, you might need to
install the *Contacts* app, or go to any other module where you can
browse partners).

2. Select any contact that is a company and contains sub-contacts.

3. You will see a new little button next to each contact's name that
you can click to go to hers/his full form:

![image](../static/description/full-form.gif)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 5bea20c

Please sign in to comment.