Nikul-Chaudhary
6 years ago
16 changed files with 92 additions and 69 deletions
-
1partner_second_lastname/README.rst
-
3partner_second_lastname/__init__.py
-
5partner_second_lastname/__manifest__.py
-
2partner_second_lastname/models/__init__.py
-
3partner_second_lastname/models/res_config_settings.py
-
10partner_second_lastname/models/res_partner.py
-
15partner_second_lastname/readme/CONFIGURE.rst
-
4partner_second_lastname/readme/CONTRIBUTORS.rst
-
7partner_second_lastname/readme/DESCRIPTION.rst
-
13partner_second_lastname/readme/USAGE.rst
-
1partner_second_lastname/tests/__init__.py
-
1partner_second_lastname/tests/test_config.py
-
5partner_second_lastname/tests/test_name.py
-
5partner_second_lastname/tests/test_onchange.py
-
62partner_second_lastname/views/res_partner.xml
-
24partner_second_lastname/views/res_user.xml
@ -1,5 +1,4 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# Copyright 2015 Grupo ESOC Ingeniería de Servicios, S.L.U. |
|||
# 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 |
@ -1,5 +1,3 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# © 2015 Antiun Ingenieria S.L. - Antonio Espinosa |
|||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
|||
|
|||
from . import res_config_settings |
|||
|
@ -0,0 +1,15 @@ |
|||
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. |
@ -0,0 +1,4 @@ |
|||
* Jairo Llopis <jairo.llopis@tecnativa.com>. |
|||
* Antonio Espinosa. |
|||
* Pedro M. Baeza <pedro.baeza@tecnativa.com>. |
|||
* Nikul Chaudhary <nikulchaudhary2112@gmail.com> |
@ -0,0 +1,7 @@ |
|||
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*). |
@ -0,0 +1,13 @@ |
|||
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. |
Write
Preview
Loading…
Cancel
Save
Reference in new issue