partner-contact/partner_second_lastname/README.rst

127 lines
4.6 KiB
ReStructuredText
Raw Normal View History

2024-05-03 08:58:43 +00:00
========================
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 <jairo.llopis@tecnativa.com>.
- Antonio Espinosa.
- Pedro M. Baeza <pedro.baeza@tecnativa.com>.
- Nikul Chaudhary <nikulchaudhary2112@gmail.com>
- Manuel Regidor <manuel.regidor@sygel.es>
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.