-
-
Notifications
You must be signed in to change notification settings - Fork 819
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[11.0][mig ][partner_second_lastname] #495
Merged
JordiBForgeFlow
merged 7 commits into
OCA:11.0
from
ForgeFlow:11.0-mig-partner_second_lastname
Oct 27, 2017
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
4ad645f
Add module partner_lastname2.
59f6a91
[IMP] partner_second_lastname: Partner names order configurable
antespi 00cbc81
[MIG] partner_second_lastname: Migration to 10.0
pedrobaeza 25fbbf9
OCA Transbot updated translations from Transifex
oca-transbot be5dd67
OCA Transbot updated translations from Transifex
oca-transbot a64715d
OCA Transbot updated translations from Transifex
oca-transbot a48e13c
migration to 11.0
JordiBForgeFlow File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg | ||
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html | ||
:alt: License: AGPL-3 | ||
|
||
======================= | ||
Partner second lastname | ||
======================= | ||
|
||
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*). | ||
|
||
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. | ||
|
||
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas | ||
:alt: Try me on Runbot | ||
:target: https://runbot.odoo-community.org/runbot/134/11.0 | ||
|
||
|
||
Known issues / Roadmap | ||
====================== | ||
|
||
Patterns for the inverse function are configurable only at system level. Maybe | ||
this configuration could depend on partner language, country or company, | ||
as discussed at `this OCA issue <https://github.com/OCA/partner-contact/issues/210>`_ | ||
|
||
|
||
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 smashing it by providing a detailed and welcomed feedback `here | ||
<https://github.com/OCA/partner-contact/issues/new>`_. | ||
|
||
|
||
Credits | ||
======= | ||
|
||
Contributors | ||
------------ | ||
|
||
* Jairo Llopis <jairo.llopis@tecnativa.com>. | ||
* Antonio Espinosa. | ||
* Pedro M. Baeza <pedro.baeza@tecnativa.com>. | ||
|
||
Maintainer | ||
---------- | ||
|
||
.. image:: https://odoo-community.org/logo.png | ||
:alt: Odoo Community Association | ||
:target: https://odoo-community.org | ||
|
||
This module is maintained by the OCA. | ||
|
||
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. | ||
|
||
To contribute to this module, please visit https://odoo-community.org. |
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,5 @@ | ||
# -*- coding: utf-8 -*- | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
# © 2015 Grupo ESOC Ingeniería de Servicios, S.L.U. | ||
|
||
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,24 @@ | ||
# -*- coding: utf-8 -*- | ||
# 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": "11.0.1.0.0", | ||
"license": "AGPL-3", | ||
"website": "https://www.tecnativa.com", | ||
"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,36 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * partner_second_lastname | ||
# | ||
# Translators: | ||
# OCA Transbot <transbot@odoo-community.org>, 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 <transbot@odoo-community.org>, 2017\n" | ||
"Language-Team: Amharic (https://www.transifex.com/oca/teams/23907/am/)\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Language: am\n" | ||
"Plural-Forms: nplurals=2; plural=(n > 1);\n" | ||
|
||
#. module: partner_second_lastname | ||
#: model:ir.model,name:partner_second_lastname.model_res_partner | ||
msgid "Partner" | ||
msgstr "ተባባሪ" | ||
|
||
#. module: partner_second_lastname | ||
#: model:ir.model.fields,field_description:partner_second_lastname.field_res_partner_alias_lastname2 | ||
#: 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 "" | ||
|
||
#. module: partner_second_lastname | ||
#: model:ir.model,name:partner_second_lastname.model_base_config_settings | ||
msgid "base.config.settings" | ||
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,36 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * partner_second_lastname | ||
# | ||
# Translators: | ||
# OCA Transbot <transbot@odoo-community.org>, 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 <transbot@odoo-community.org>, 2017\n" | ||
"Language-Team: Arabic (https://www.transifex.com/oca/teams/23907/ar/)\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Language: ar\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_partner | ||
msgid "Partner" | ||
msgstr "الشريك" | ||
|
||
#. module: partner_second_lastname | ||
#: model:ir.model.fields,field_description:partner_second_lastname.field_res_partner_alias_lastname2 | ||
#: 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 "" | ||
|
||
#. module: partner_second_lastname | ||
#: model:ir.model,name:partner_second_lastname.model_base_config_settings | ||
msgid "base.config.settings" | ||
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,36 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * partner_second_lastname | ||
# | ||
# Translators: | ||
# OCA Transbot <transbot@odoo-community.org>, 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 <transbot@odoo-community.org>, 2017\n" | ||
"Language-Team: Bulgarian (https://www.transifex.com/oca/teams/23907/bg/)\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Language: bg\n" | ||
"Plural-Forms: nplurals=2; plural=(n != 1);\n" | ||
|
||
#. module: partner_second_lastname | ||
#: model:ir.model,name:partner_second_lastname.model_res_partner | ||
msgid "Partner" | ||
msgstr "Партньор" | ||
|
||
#. module: partner_second_lastname | ||
#: model:ir.model.fields,field_description:partner_second_lastname.field_res_partner_alias_lastname2 | ||
#: 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 "" | ||
|
||
#. module: partner_second_lastname | ||
#: model:ir.model,name:partner_second_lastname.model_base_config_settings | ||
msgid "base.config.settings" | ||
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,36 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * partner_second_lastname | ||
# | ||
# Translators: | ||
# OCA Transbot <transbot@odoo-community.org>, 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 <transbot@odoo-community.org>, 2017\n" | ||
"Language-Team: Bosnian (https://www.transifex.com/oca/teams/23907/bs/)\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Language: bs\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_partner | ||
msgid "Partner" | ||
msgstr "Partner" | ||
|
||
#. module: partner_second_lastname | ||
#: model:ir.model.fields,field_description:partner_second_lastname.field_res_partner_alias_lastname2 | ||
#: 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 "" | ||
|
||
#. module: partner_second_lastname | ||
#: model:ir.model,name:partner_second_lastname.model_base_config_settings | ||
msgid "base.config.settings" | ||
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,36 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * partner_second_lastname | ||
# | ||
# Translators: | ||
# OCA Transbot <transbot@odoo-community.org>, 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 <transbot@odoo-community.org>, 2017\n" | ||
"Language-Team: Catalan (https://www.transifex.com/oca/teams/23907/ca/)\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Language: ca\n" | ||
"Plural-Forms: nplurals=2; plural=(n != 1);\n" | ||
|
||
#. module: partner_second_lastname | ||
#: model:ir.model,name:partner_second_lastname.model_res_partner | ||
msgid "Partner" | ||
msgstr "Empresa" | ||
|
||
#. module: partner_second_lastname | ||
#: model:ir.model.fields,field_description:partner_second_lastname.field_res_partner_alias_lastname2 | ||
#: 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 "" | ||
|
||
#. module: partner_second_lastname | ||
#: model:ir.model,name:partner_second_lastname.model_base_config_settings | ||
msgid "base.config.settings" | ||
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,36 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * partner_second_lastname | ||
# | ||
# Translators: | ||
# OCA Transbot <transbot@odoo-community.org>, 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 <transbot@odoo-community.org>, 2017\n" | ||
"Language-Team: Czech (https://www.transifex.com/oca/teams/23907/cs/)\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Language: cs\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_partner | ||
msgid "Partner" | ||
msgstr "Společník" | ||
|
||
#. module: partner_second_lastname | ||
#: model:ir.model.fields,field_description:partner_second_lastname.field_res_partner_alias_lastname2 | ||
#: 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 "" | ||
|
||
#. module: partner_second_lastname | ||
#: model:ir.model,name:partner_second_lastname.model_base_config_settings | ||
msgid "base.config.settings" | ||
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,36 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * partner_second_lastname | ||
# | ||
# Translators: | ||
# OCA Transbot <transbot@odoo-community.org>, 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 <transbot@odoo-community.org>, 2017\n" | ||
"Language-Team: Danish (https://www.transifex.com/oca/teams/23907/da/)\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Language: da\n" | ||
"Plural-Forms: nplurals=2; plural=(n != 1);\n" | ||
|
||
#. module: partner_second_lastname | ||
#: model:ir.model,name:partner_second_lastname.model_res_partner | ||
msgid "Partner" | ||
msgstr "Partner" | ||
|
||
#. module: partner_second_lastname | ||
#: model:ir.model.fields,field_description:partner_second_lastname.field_res_partner_alias_lastname2 | ||
#: 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 "" | ||
|
||
#. module: partner_second_lastname | ||
#: model:ir.model,name:partner_second_lastname.model_base_config_settings | ||
msgid "base.config.settings" | ||
msgstr "" |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https