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.

118 lines
4.1 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 first name and last name
  6. ================================
  7. This module was written to extend the functionality of contacts to support
  8. having separate last name and first name.
  9. Configuration
  10. =============
  11. You can configure some common name patterns for the inverse function
  12. in Settings > Configuration > General settings:
  13. * Lastname Firstname: For example 'Anderson Robert'
  14. * Lastname, Firstname: For example 'Anderson, Robert'
  15. * Firstname Lastname: For example 'Robert Anderson'
  16. After applying the changes, you can recalculate all partners name clicking
  17. "Recalculate names" button. Note: This process could take so much time depending
  18. how many partners there are in database.
  19. You can use *_get_inverse_name* method to get lastname and firstname from a simple string
  20. and also *_get_computed_name* to get a name form the lastname and firstname.
  21. These methods can be overridden to change the format specified above.
  22. Usage
  23. =====
  24. The field *name* becomes a stored function field concatenating the *last name*
  25. and the *first name*. This avoids breaking compatibility with other modules.
  26. Users should fulfill manually the separate fields for *last name* and *first
  27. name*, but in case you edit just the *name* field in some unexpected module,
  28. there is an inverse function that tries to split that automatically. It assumes
  29. that you write the *name* in format configured (*"Lastname Firstname"*, by default),
  30. but it could lead to wrong splitting (because it's just blindly trying to
  31. guess what you meant), so you better specify it manually.
  32. For the same reason, after installing, previous names for contacts will stay in
  33. the *name* field, and the first time you edit any of them you will be asked to
  34. supply the *last name* and *first name* (just once per contact).
  35. .. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
  36. :alt: Try me on Runbot
  37. :target: https://runbot.odoo-community.org/runbot/134/10.0
  38. For further information, please visit:
  39. * https://www.odoo.com/forum/help-1
  40. Known issues / Roadmap
  41. ======================
  42. Patterns for the inverse function are configurable only at system level. Maybe
  43. this configuration could depend on partner language, country or company,
  44. as discussed at `this OCA issue <https://github.com/OCA/partner-contact/issues/210>`_
  45. Bug Tracker
  46. ===========
  47. Bugs are tracked on `GitHub Issues
  48. <https://github.com/OCA/partner-contact/issues>`_. In case of trouble, please
  49. check there if your issue has already been reported. If you spotted it first,
  50. help us smashing it by providing a detailed and welcomed feedback.
  51. Credits
  52. =======
  53. Contributors
  54. ------------
  55. * Nicolas Bessi <nicolas.bessi@camptocamp.com>
  56. * Yannick Vaucher <yannick.vaucher@camptocamp.com>
  57. * Vincent Renaville <vincent.renaville@camptocamp.com>
  58. * Guewen Baconnier <guewen.baconnier@camptocamp.com>
  59. * Holger Brunn <hbrunn@terp.nl>
  60. * Jonathan Nemry <jonathan.nemry@acsone.eu>
  61. * Olivier Laurent <olivier.laurent@acsone.eu>
  62. * Sandy Carter <sandy.carter@savoirfairelinux.com>
  63. * Alexis de Lattre <alexis.delattre@akretion.fr>
  64. * Lorenzo Battistini <lorenzo.battistini@agilebg.com>
  65. * Hans Henrik Gabelgaard <hhg@gabelgaard.org>
  66. * Jairo Llopis <j.llopis@grupoesoc.es>
  67. * Adrien Peiffer <adrien.peiffer@acsone.eu>
  68. * Ronald Portier <ronald@therp.nl>
  69. * Sylvain Van Hoof
  70. * Pedro Baeza <pedro.baeza@serviciosbaeza.com>
  71. * Dave Lasley <dave@laslabs.com>
  72. Translations
  73. ------------
  74. * Danish: Hans Henrik Gabelgaard
  75. * Italian: Leonardo Donelli
  76. * Spanish: Antonio Espinosa
  77. * Antonio Espinosa <antonioea@antiun.com>
  78. Maintainer
  79. ----------
  80. .. image:: http://odoo-community.org/logo.png
  81. :alt: Odoo Community Association
  82. :target: http://odoo-community.org
  83. This module is maintained by the OCA.
  84. OCA, or the Odoo Community Association, is a nonprofit organization whose
  85. mission is to support the collaborative development of Odoo features and
  86. promote its widespread use.
  87. To contribute to this module, please visit http://odoo-community.org.