You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

100 lines
3.3 KiB

  1. .. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
  2. :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
  3. :alt: License: AGPL-3
  4. =======================
  5. Partner second lastname
  6. =======================
  7. This module was written to extend the functionality of ``partner_firstname`` to
  8. support having a second lastname for contact partners.
  9. In some countries, it's important to have a second last name for contacts.
  10. Contact partners will need to fill at least one of the name fields
  11. (*First name*, *First last name* or *Second last name*).
  12. Configuration
  13. =============
  14. You can configure some common name patterns for the inverse function
  15. in Settings > Configuration > General settings:
  16. * Lastname SecondLastname Firstname: For example 'Anderson Lavarge Robert'
  17. * Lastname SecondLastname, Firstname: For example 'Anderson Lavarge, Robert'
  18. * Firstname Lastname SecondLastname: For example 'Robert Anderson Lavarge'
  19. After applying the changes, you can recalculate all partners name clicking
  20. "Recalculate names" button. Note: This process could take so much time depending
  21. how many partners there are in database.
  22. You can use *_get_inverse_name* method to get firstname, lastname and
  23. second lastname from a simple string and also *_get_computed_name* to get a
  24. name form the firstname, lastname and second lastname.
  25. These methods can be overridden to change the format specified above.
  26. Usage
  27. =====
  28. To use this module, you need to:
  29. * Edit any partner's form.
  30. * Make sure the partner is not a company.
  31. * Enter firstname and lastnames.
  32. If you directly enter the full name instead of entering the other fields
  33. separately (maybe from other form), this module will try to guess the best
  34. match for your input and split it between firstname, lastname and second
  35. lastname using an inverse function.
  36. If you can, always enter it manually please. Automatic guessing could fail for
  37. you easily in some corner cases.
  38. .. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
  39. :alt: Try me on Runbot
  40. :target: https://runbot.odoo-community.org/runbot/134/11.0
  41. Known issues / Roadmap
  42. ======================
  43. Patterns for the inverse function are configurable only at system level. Maybe
  44. this configuration could depend on partner language, country or company,
  45. as discussed at `this OCA issue <https://github.com/OCA/partner-contact/issues/210>`_
  46. Bug Tracker
  47. ===========
  48. Bugs are tracked on `GitHub Issues
  49. <https://github.com/OCA/partner-contact/issues>`_. In case of trouble, please
  50. check there if your issue has already been reported. If you spotted it first,
  51. help us smashing it by providing a detailed and welcomed feedback `here
  52. <https://github.com/OCA/partner-contact/issues/new>`_.
  53. Credits
  54. =======
  55. Contributors
  56. ------------
  57. * Jairo Llopis <jairo.llopis@tecnativa.com>.
  58. * Antonio Espinosa.
  59. * Pedro M. Baeza <pedro.baeza@tecnativa.com>.
  60. Maintainer
  61. ----------
  62. .. image:: https://odoo-community.org/logo.png
  63. :alt: Odoo Community Association
  64. :target: https://odoo-community.org
  65. This module is maintained by the OCA.
  66. OCA, or the Odoo Community Association, is a nonprofit organization whose
  67. mission is to support the collaborative development of Odoo features and
  68. promote its widespread use.
  69. To contribute to this module, please visit https://odoo-community.org.