forked from OCA/partner-contact
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1116 from OCA/17.0
Syncing from upstream OCA/partner-contact (17.0)
- Loading branch information
Showing
73 changed files
with
3,175 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,127 @@ | ||
======================== | ||
Partner second last name | ||
======================== | ||
|
||
.. | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! This file is generated by oca-gen-addon-readme !! | ||
!! changes will be overwritten. !! | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! source digest: sha256:bb49108b950c8dc58ca84bb8c7ab43df95cfc9e8a396d8dc7ae8e1a4a0cc4a3d | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png | ||
:target: https://odoo-community.org/page/development-status | ||
:alt: Beta | ||
.. |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_second_lastname | ||
: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_second_lastname | ||
: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 was written to extend the functionality of | ||
``partner_firstname`` to support having a second lastname for contact | ||
partners. | ||
|
||
In some countries, it's important to have a second last name for | ||
contacts. | ||
|
||
Contact partners will need to fill at least one of the name fields | ||
(*First name*, *First last name* or *Second last name*). | ||
|
||
**Table of contents** | ||
|
||
.. contents:: | ||
:local: | ||
|
||
Configuration | ||
============= | ||
|
||
You can configure some common name patterns for the inverse function in | ||
Settings > Configuration > General settings: | ||
|
||
- Lastname SecondLastname Firstname: For example 'Anderson Lavarge | ||
Robert' | ||
- Lastname SecondLastname, Firstname: For example 'Anderson Lavarge, | ||
Robert' | ||
- Firstname Lastname SecondLastname: For example 'Robert Anderson | ||
Lavarge' | ||
|
||
After applying the changes, you can recalculate all partners name | ||
clicking "Recalculate names" button. Note: This process could take so | ||
much time depending how many partners there are in database. | ||
|
||
You can use *\_get_inverse_name* method to get firstname, lastname and | ||
second lastname from a simple string and also *\_get_computed_name* to | ||
get a name form the firstname, lastname and second lastname. These | ||
methods can be overridden to change the format specified above. | ||
|
||
Usage | ||
===== | ||
|
||
To use this module, you need to: | ||
|
||
- Edit any partner's form. | ||
- Make sure the partner is not a company. | ||
- Enter firstname and lastnames. | ||
|
||
If you directly enter the full name instead of entering the other fields | ||
separately (maybe from other form), this module will try to guess the | ||
best match for your input and split it between firstname, lastname and | ||
second lastname using an inverse function. | ||
|
||
If you can, always enter it manually please. Automatic guessing could | ||
fail for you easily in some corner cases. | ||
|
||
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_second_lastname%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 <[email protected]>. | ||
- Antonio Espinosa. | ||
- Pedro M. Baeza <[email protected]>. | ||
- Nikul Chaudhary <[email protected]> | ||
- Manuel Regidor <[email protected]> | ||
|
||
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. | ||
|
||
This module is part of the `OCA/partner-contact <https://github.com/OCA/partner-contact/tree/17.0/partner_second_lastname>`_ project on GitHub. | ||
|
||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Copyright 2015 Grupo ESOC Ingeniería de Servicios, S.L.U. | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
|
||
from . import models |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Copyright 2015 Grupo ESOC Ingeniería de Servicios, S.L.U. - Jairo Llopis | ||
# Copyright 2015 Antiun Ingenieria S.L. - Antonio Espinosa | ||
# Copyright 2017 Tecnativa - Pedro M. Baeza | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). | ||
|
||
{ | ||
"name": "Partner second last name", | ||
"summary": "Have split first and second lastnames", | ||
"version": "17.0.1.0.0", | ||
"license": "AGPL-3", | ||
"website": "https://github.com/OCA/partner-contact", | ||
"author": "Tecnativa, " "Odoo Community Association (OCA)", | ||
"category": "Partner Management", | ||
"depends": ["partner_firstname"], | ||
"data": ["views/res_partner.xml", "views/res_user.xml"], | ||
"installable": True, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * partner_second_lastname | ||
# | ||
# Translators: | ||
# OCA Transbot <[email protected]>, 2017 | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 10.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2017-06-30 02:49+0000\n" | ||
"PO-Revision-Date: 2017-06-30 02:49+0000\n" | ||
"Last-Translator: OCA Transbot <[email protected]>, 2017\n" | ||
"Language-Team: Amharic (https://www.transifex.com/oca/teams/23907/am/)\n" | ||
"Language: am\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" | ||
|
||
#. module: partner_second_lastname | ||
#: model:ir.model,name:partner_second_lastname.model_res_config_settings | ||
msgid "Config Settings" | ||
msgstr "" | ||
|
||
#. module: partner_second_lastname | ||
#: model:ir.model,name:partner_second_lastname.model_res_partner | ||
msgid "Contact" | ||
msgstr "" | ||
|
||
#. module: partner_second_lastname | ||
#: model:ir.model.fields,field_description:partner_second_lastname.field_res_partner__lastname2 | ||
#: model:ir.model.fields,field_description:partner_second_lastname.field_res_users__lastname2 | ||
msgid "Second last name" | ||
msgstr "" | ||
|
||
#~ msgid "Partner" | ||
#~ msgstr "ተባባሪ" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * partner_second_lastname | ||
# | ||
# Translators: | ||
# OCA Transbot <[email protected]>, 2017 | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 10.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2017-06-30 02:49+0000\n" | ||
"PO-Revision-Date: 2017-06-30 02:49+0000\n" | ||
"Last-Translator: OCA Transbot <[email protected]>, 2017\n" | ||
"Language-Team: Arabic (https://www.transifex.com/oca/teams/23907/ar/)\n" | ||
"Language: ar\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 " | ||
"&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n" | ||
|
||
#. module: partner_second_lastname | ||
#: model:ir.model,name:partner_second_lastname.model_res_config_settings | ||
msgid "Config Settings" | ||
msgstr "" | ||
|
||
#. module: partner_second_lastname | ||
#: model:ir.model,name:partner_second_lastname.model_res_partner | ||
msgid "Contact" | ||
msgstr "" | ||
|
||
#. module: partner_second_lastname | ||
#: model:ir.model.fields,field_description:partner_second_lastname.field_res_partner__lastname2 | ||
#: model:ir.model.fields,field_description:partner_second_lastname.field_res_users__lastname2 | ||
msgid "Second last name" | ||
msgstr "" | ||
|
||
#~ msgid "Partner" | ||
#~ msgstr "الشريك" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * partner_second_lastname | ||
# | ||
# Translators: | ||
# OCA Transbot <[email protected]>, 2017 | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 10.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2017-06-30 02:49+0000\n" | ||
"PO-Revision-Date: 2017-06-30 02:49+0000\n" | ||
"Last-Translator: OCA Transbot <[email protected]>, 2017\n" | ||
"Language-Team: Bulgarian (https://www.transifex.com/oca/teams/23907/bg/)\n" | ||
"Language: bg\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" | ||
|
||
#. module: partner_second_lastname | ||
#: model:ir.model,name:partner_second_lastname.model_res_config_settings | ||
msgid "Config Settings" | ||
msgstr "" | ||
|
||
#. module: partner_second_lastname | ||
#: model:ir.model,name:partner_second_lastname.model_res_partner | ||
msgid "Contact" | ||
msgstr "" | ||
|
||
#. module: partner_second_lastname | ||
#: model:ir.model.fields,field_description:partner_second_lastname.field_res_partner__lastname2 | ||
#: model:ir.model.fields,field_description:partner_second_lastname.field_res_users__lastname2 | ||
msgid "Second last name" | ||
msgstr "" | ||
|
||
#~ msgid "Partner" | ||
#~ msgstr "Партньор" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * partner_second_lastname | ||
# | ||
# Translators: | ||
# OCA Transbot <[email protected]>, 2017 | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 10.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2017-06-30 02:49+0000\n" | ||
"PO-Revision-Date: 2017-06-30 02:49+0000\n" | ||
"Last-Translator: OCA Transbot <[email protected]>, 2017\n" | ||
"Language-Team: Bosnian (https://www.transifex.com/oca/teams/23907/bs/)\n" | ||
"Language: bs\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" | ||
|
||
#. module: partner_second_lastname | ||
#: model:ir.model,name:partner_second_lastname.model_res_config_settings | ||
msgid "Config Settings" | ||
msgstr "" | ||
|
||
#. module: partner_second_lastname | ||
#: model:ir.model,name:partner_second_lastname.model_res_partner | ||
msgid "Contact" | ||
msgstr "" | ||
|
||
#. module: partner_second_lastname | ||
#: model:ir.model.fields,field_description:partner_second_lastname.field_res_partner__lastname2 | ||
#: model:ir.model.fields,field_description:partner_second_lastname.field_res_users__lastname2 | ||
msgid "Second last name" | ||
msgstr "" | ||
|
||
#~ msgid "Partner" | ||
#~ msgstr "Partner" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * partner_second_lastname | ||
# | ||
# Translators: | ||
# OCA Transbot <[email protected]>, 2017 | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 10.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2017-06-30 02:49+0000\n" | ||
"PO-Revision-Date: 2017-06-30 02:49+0000\n" | ||
"Last-Translator: OCA Transbot <[email protected]>, 2017\n" | ||
"Language-Team: Catalan (https://www.transifex.com/oca/teams/23907/ca/)\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" | ||
|
||
#. module: partner_second_lastname | ||
#: model:ir.model,name:partner_second_lastname.model_res_config_settings | ||
msgid "Config Settings" | ||
msgstr "" | ||
|
||
#. module: partner_second_lastname | ||
#: model:ir.model,name:partner_second_lastname.model_res_partner | ||
msgid "Contact" | ||
msgstr "" | ||
|
||
#. module: partner_second_lastname | ||
#: model:ir.model.fields,field_description:partner_second_lastname.field_res_partner__lastname2 | ||
#: model:ir.model.fields,field_description:partner_second_lastname.field_res_users__lastname2 | ||
msgid "Second last name" | ||
msgstr "" | ||
|
||
#~ msgid "Partner" | ||
#~ msgstr "Empresa" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * partner_second_lastname | ||
# | ||
# Translators: | ||
# OCA Transbot <[email protected]>, 2017 | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 10.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2017-06-30 02:49+0000\n" | ||
"PO-Revision-Date: 2017-06-30 02:49+0000\n" | ||
"Last-Translator: OCA Transbot <[email protected]>, 2017\n" | ||
"Language-Team: Czech (https://www.transifex.com/oca/teams/23907/cs/)\n" | ||
"Language: cs\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" | ||
|
||
#. module: partner_second_lastname | ||
#: model:ir.model,name:partner_second_lastname.model_res_config_settings | ||
msgid "Config Settings" | ||
msgstr "" | ||
|
||
#. module: partner_second_lastname | ||
#: model:ir.model,name:partner_second_lastname.model_res_partner | ||
msgid "Contact" | ||
msgstr "" | ||
|
||
#. module: partner_second_lastname | ||
#: model:ir.model.fields,field_description:partner_second_lastname.field_res_partner__lastname2 | ||
#: model:ir.model.fields,field_description:partner_second_lastname.field_res_users__lastname2 | ||
msgid "Second last name" | ||
msgstr "" | ||
|
||
#~ msgid "Partner" | ||
#~ msgstr "Společník" |
Oops, something went wrong.