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.

137 lines
5.3 KiB

6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
  1. ================================
  2. Partner first name and last name
  3. ================================
  4. .. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  5. !! This file is generated by oca-gen-addon-readme !!
  6. !! changes will be overwritten. !!
  7. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  8. .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
  9. :target: https://odoo-community.org/page/development-status
  10. :alt: Beta
  11. .. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
  12. :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
  13. :alt: License: AGPL-3
  14. .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fpartner--contact-lightgray.png?logo=github
  15. :target: https://github.com/OCA/partner-contact/tree/12.0/partner_firstname
  16. :alt: OCA/partner-contact
  17. .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
  18. :target: https://translation.odoo-community.org/projects/partner-contact-12-0/partner-contact-12-0-partner_firstname
  19. :alt: Translate me on Weblate
  20. .. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
  21. :target: https://runbot.odoo-community.org/runbot/134/12.0
  22. :alt: Try me on Runbot
  23. |badge1| |badge2| |badge3| |badge4| |badge5|
  24. This module was written to extend the functionality of contacts to support
  25. having separate last name and first name.
  26. **Table of contents**
  27. .. contents::
  28. :local:
  29. Configuration
  30. =============
  31. You can configure some common name patterns for the inverse function
  32. in Settings > General settings:
  33. * Lastname Firstname: For example 'Anderson Robert'
  34. * Lastname, Firstname: For example 'Anderson, Robert'
  35. * Firstname Lastname: For example 'Robert Anderson'
  36. After applying the changes, you can recalculate all partners name clicking
  37. "Recalculate names" button. Note: This process could take so much time depending
  38. how many partners there are in database.
  39. You can use *_get_inverse_name* method to get lastname and firstname from a simple string
  40. and also *_get_computed_name* to get a name form the lastname and firstname.
  41. These methods can be overridden to change the format specified above.
  42. Usage
  43. =====
  44. The field *name* becomes a stored function field concatenating the *last name*
  45. and the *first name*. This avoids breaking compatibility with other modules.
  46. Users should fulfill manually the separate fields for *last name* and *first
  47. name*, but in case you edit just the *name* field in some unexpected module,
  48. there is an inverse function that tries to split that automatically. It assumes
  49. that you write the *name* in format configured (*"Lastname Firstname"*, by default),
  50. but it could lead to wrong splitting (because it's just blindly trying to
  51. guess what you meant), so you better specify it manually.
  52. For the same reason, after installing, previous names for contacts will stay in
  53. the *name* field, and the first time you edit any of them you will be asked to
  54. supply the *last name* and *first name* (just once per contact).
  55. Known issues / Roadmap
  56. ======================
  57. Patterns for the inverse function are configurable only at system level. Maybe
  58. this configuration could depend on partner language, country or company,
  59. as discussed at `this OCA issue <https://github.com/OCA/partner-contact/issues/210>`_
  60. Bug Tracker
  61. ===========
  62. Bugs are tracked on `GitHub Issues <https://github.com/OCA/partner-contact/issues>`_.
  63. In case of trouble, please check there if your issue has already been reported.
  64. If you spotted it first, help us smashing it by providing a detailed and welcomed
  65. `feedback <https://github.com/OCA/partner-contact/issues/new?body=module:%20partner_firstname%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
  66. Do not contact contributors directly about support or help with technical issues.
  67. Credits
  68. =======
  69. Authors
  70. ~~~~~~~
  71. * Camptocamp
  72. * Grupo ESOC Ingeniería de Servicios
  73. * Tecnativa
  74. * LasLabs
  75. * ACSONE SA/NV
  76. Contributors
  77. ~~~~~~~~~~~~
  78. * Nicolas Bessi <nicolas.bessi@camptocamp.com>
  79. * Yannick Vaucher <yannick.vaucher@camptocamp.com>
  80. * Vincent Renaville <vincent.renaville@camptocamp.com>
  81. * Guewen Baconnier <guewen.baconnier@camptocamp.com>
  82. * Holger Brunn <hbrunn@terp.nl>
  83. * Jonathan Nemry <jonathan.nemry@acsone.eu>
  84. * Olivier Laurent <olivier.laurent@acsone.eu>
  85. * Sandy Carter <sandy.carter@savoirfairelinux.com>
  86. * Alexis de Lattre <alexis.delattre@akretion.fr>
  87. * Lorenzo Battistini <lorenzo.battistini@agilebg.com>
  88. * Hans Henrik Gabelgaard <hhg@gabelgaard.org>
  89. * Jairo Llopis <j.llopis@grupoesoc.es>
  90. * Adrien Peiffer <adrien.peiffer@acsone.eu>
  91. * Ronald Portier <ronald@therp.nl>
  92. * Sylvain Van Hoof
  93. * Pedro Baeza <pedro.baeza@serviciosbaeza.com>
  94. * Dave Lasley <dave@laslabs.com>
  95. * Graeme Gellatly <graeme@o4sb.com>
  96. Maintainers
  97. ~~~~~~~~~~~
  98. This module is maintained by the OCA.
  99. .. image:: https://odoo-community.org/logo.png
  100. :alt: Odoo Community Association
  101. :target: https://odoo-community.org
  102. OCA, or the Odoo Community Association, is a nonprofit organization whose
  103. mission is to support the collaborative development of Odoo features and
  104. promote its widespread use.
  105. This module is part of the `OCA/partner-contact <https://github.com/OCA/partner-contact/tree/12.0/partner_firstname>`_ project on GitHub.
  106. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.