Author: |
CommitSun, Odoo Community Association (OCA) |
License: |
AGPL-3 |
Branch: |
14.0-improvement-housekeeping |
Repository: |
commitsun/pms |
Dependencies: |
partner_contact_birthdate,
partner_contact_gender,
partner_contact_personal_information_page,
partner_firstname,
partner_second_lastname,
and
pms |
Languages: |
HTML (391, 40.9%),
PO File (55, 5.8%),
Python (316, 33.1%),
XML (110, 11.5%),
and
reStructuredText (83, 8.7%) |
Other branches: |
14.0,
14.0-add_traveller_report_pn,
14.0-common-refactor-tests,
14.0-connector_pms,
14.0-connector_pms_prepayments,
14.0-connector_pms_rfc_export,
14.0-fix-pms-board_service_price_folio_report,
14.0-fix-pms-cachemiss-product_room_type_id,
14.0-fix-pms-checkin_checkout_dependency,
14.0-fix-pms-minor_bugfixes,
14.0-fix-pms-pricelist-bug,
14.0-fix-pms-wizard_massive_changes_bug,
14.0-fix-pms-wrong_plan_avail,
14.0-fix-pms_board_service_in_booking_engine,
14.0-fix-pms_partner_data_view_calls,
14.0-fix-properties-consistency-pms-board-service-room-type-ids,
14.0-fix_error_check_capacity_reservations,
14.0-fix_error_when_existing_av_rules_with_same_values,
14.0-fix_folio_commision,
14.0-fix_imp-pms-minor_bugfixes_and_improvements,
14.0-fix_not_sending_institution_if_not_setted,
14.0-fix_pms_precheckin,
14.0-fix_precheckin_qweb_template,
14.0-fix_unit_price_reservation_lines_with_board_services_included,
14.0-hot_fix_tmp_1_board_service_price_property,
14.0-imp-pms-force_overbooking,
14.0-improvement_folio_portal_view,
14.0-improvement_multicompany_price,
14.0-improvement_pms_views,
14.0-ine-nationality-exception,
14.0-invoice_payments_folio_relations,
14.0-l10n_es_document_numbers,
14.0-pms-added_room_type_in_product,
14.0-pms-manage_pricelist_board_services,
14.0-pms-refactor-avail,
14.0-pms-traveller-report-last,
14.0-pms_SII_integration,
14.0-pms_accounting_flow,
14.0-pms_add_autoinvoice_down_payments_policy,
14.0-pms_add_checkin_fields,
14.0-pms_add_demo_data,
14.0-pms_add_ine_code_res_partner,
14.0-pms_api_rest,
14.0-pms_api_rest-error-change-bs,
14.0-pms_api_rest-fix-bx-security,
14.0-pms_api_rest-out-of-services-fixes,
14.0-pms_api_rest_alerts_per_day,
14.0-pms_api_rest_avails_service,
14.0-pms_api_rest_avails_service_temp,
14.0-pms_api_rest_batch_changes,
14.0-pms_api_rest_cancel_reservation,
14.0-pms_api_rest_charges_service_return,
14.0-pms_api_rest_checkin_action_onboard,
14.0-pms_api_rest_checkin_nationality,
14.0-pms_api_rest_checkin_partners,
14.0-pms_api_rest_checkin_partners_services,
14.0-pms_api_rest_configurable_avail_rules,
14.0-pms_api_rest_errors_auth,
14.0-pms_api_rest_filter_folios_by_cancel,
14.0-pms_api_rest_filter_folios_by_state,
14.0-pms_api_rest_fix_precheckin,
14.0-pms_api_rest_fix_save_partner_name,
14.0-pms_api_rest_folio_calendar_info,
14.0-pms_api_rest_folio_internal_comment,
14.0-pms_api_rest_folio_mails_workflow,
14.0-pms_api_rest_folio_partner_data,
14.0-pms_api_rest_folio_patch,
14.0-pms_api_rest_folio_portal_url,
14.0-pms_api_rest_folio_service_changes,
14.0-pms_api_rest_folio_services,
14.0-pms_api_rest_folio_transactions_service,
14.0-pms_api_rest_folios_filter_by_state,
14.0-pms_api_rest_get_user_ids,
14.0-pms_api_rest_invoice_action_post,
14.0-pms_api_rest_invoice_sale_line_id,
14.0-pms_api_rest_invoice_service,
14.0-pms_api_rest_invoicing,
14.0-pms_api_rest_journals_for_property,
14.0-pms_api_rest_lastname2_checkin_partner,
14.0-pms_api_rest_mail_invoice,
14.0-pms_api_rest_max_avail,
14.0-pms_api_rest_multiple_imp,
14.0-pms_api_rest_multiple_improvements,
14.0-pms_api_rest_need_action_notifications,
14.0-pms_api_rest_overbooking_reservation,
14.0-pms_api_rest_overpayment_color,
14.0-pms_api_rest_partner_payment_service,
14.0-pms_api_rest_partner_requests,
14.0-pms_api_rest_partner_residence_country,
14.0-pms_api_rest_partner_service,
14.0-pms_api_rest_partner_service2,
14.0-pms_api_rest_partner_type_filter,
14.0-pms_api_rest_partners,
14.0-pms_api_rest_patch_transactions,
14.0-pms_api_rest_payments,
14.0-pms_api_rest_post_rules_items,
14.0-pms_api_rest_pricing_and_restriction,
14.0-pms_api_rest_ref_action_cancel_confirm,
14.0-pms_api_rest_ref_partner_services,
14.0-pms_api_rest_ref_short_name,
14.0-pms_api_rest_reservation_segment_colors,
14.0-pms_api_rest_reservation_trace,
14.0-pms_api_rest_return_partner_id_services,
14.0-pms_api_rest_room_type_class_and_ubication_services,
14.0-pms_api_rest_sale_lines_discount,
14.0-pms_api_rest_search_folios,
14.0-pms_api_rest_search_partner_by_email,
14.0-pms_api_rest_service_extra_beds,
14.0-pms_api_rest_temp_notifications,
14.0-pms_api_rest_to_assign_reservations,
14.0-pms_api_rest_transactions,
14.0-pms_api_rest_transactions_date_in_domains,
14.0-pms_api_rest_transactions_service,
14.0-pms_api_rest_unlink_checkin_partner,
14.0-pms_api_rest_update_partner_folio,
14.0-pms_automated_mails,
14.0-pms_blocked_rooms,
14.0-pms_booking_engine_adults_services_qty,
14.0-pms_booking_engine_qty_to_zero,
14.0-pms_cancellation_flow,
14.0-pms_checkin_flow,
14.0-pms_demo_data,
14.0-pms_field_child_avail_ids,
14.0-pms_fix_board_services_prices_v2,
14.0-pms_fix_get_partner_by_doc,
14.0-pms_fix_partner_contact_report,
14.0-pms_fix_payment_transaction,
14.0-pms_fix_portal_folio_header,
14.0-pms_fix_precheckin_portal,
14.0-pms_fix_public_user_portal,
14.0-pms_fix_reservation_tests,
14.0-pms_fix_send_mail_model,
14.0-pms_folio_do_refund_ref,
14.0-pms_improvement_departure_arrival_delayed,
14.0-pms_improvement_invoicing_flow,
14.0-pms_improvement_views,
14.0-pms_improvements,
14.0-pms_improvements_layout_precheckin,
14.0-pms_invoice_contact,
14.0-pms_l10n_es_fix_document_type_traveller_report,
14.0-pms_l10n_es_ine_generation,
14.0-pms_l10nes_doc_support_number_compute,
14.0-pms_mail_no_auto_delete,
14.0-pms_mail_template,
14.0-pms_mails_and_notifications,
14.0-pms_massive_changes_improvement,
14.0-pms_multiproperty_improvements,
14.0-pms_multiproperty_tests,
14.0-pms_new_dummy_checkin_state,
14.0-pms_new_features_invoicing,
14.0-pms_noukee,
14.0-pms_out_of_service_description,
14.0-pms_partner_flush_reservation_folio_checkin,
14.0-pms_payment_folio_precheckin,
14.0-pms_payments_according_journal_type,
14.0-pms_precheckin_portal,
14.0-pms_pricelist_rules_demo_data,
14.0-pms_pricelist_type,
14.0-pms_property_dependent_fields,
14.0-pms_ref_email,
14.0-pms_ref_folio_invoice_tests,
14.0-pms_ref_precheckin,
14.0-pms_refact_ine,
14.0-pms_refact_quota,
14.0-pms_refact_rest_services,
14.0-pms_refact_sale_lines_compute,
14.0-pms_refactor_field_names,
14.0-pms_refactor_mail,
14.0-pms_refactor_possible_existing_customer_ids,
14.0-pms_required_plan_avail,
14.0-pms_reservation_line_overbooking,
14.0-pms_reservation_type_and_closure_reason_constraint,
14.0-pms_rest_api_update_dates_reservation,
14.0-pms_room_name_get_amenity_code,
14.0-pms_room_short_name,
14.0-pms_rooming_portal,
14.0-pms_several_sale_channels,
14.0-pms_shared_room,
14.0-pms_staff_out_reservation_type,
14.0-pms_to_assign_reservation_flow,
14.0-pms_unit_price_folio_report,
14.0-pms_wizards_duplicate_change_folios,
14.0-rest_api,
14.0_pms_door_codes,
HOTFIX1-alda-production,
TEMP-batch-changes,
TMP-SERVICES,
TMP2-14.0-pms_api_rest,
add-resevations-to-folio,
booking-engine,
booking-engine-v2,
calendar-price-by-services-lines,
calendar-pricelist-items-issues,
calendar-pricelist-items-issues-2,
demo_sept,
fix-click-reservations-open-modal,
fix-filter-partners-vat-name,
fix_property_issue_with_traveller_report_and_with_ine_statistics,
ine_configuration_settings,
pms_late_checkin_on_checkout_day,
pms_payment_acquirer_multiproperty,
poc-download-xlsx,
several-fixes,
and
swap-reservations-splitted |
<h1 class="title">Partner first name and last name</h1>
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/partner-contact/tree/14.0/partner_firstname"><img alt="OCA/partner-contact" src="https://img.shields.io/badge/github-OCA%2Fpartner--contact-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/partner-contact-14-0/partner-contact-14-0-partner_firstname"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/134/14.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
<p>This module was written to extend the functionality of contacts to support
having separate last name and first name.</p>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
<ul class="simple">
<li><a class="reference internal" href="#configuration" id="id1">Configuration</a></li>
<li><a class="reference internal" href="#usage" id="id2">Usage</a></li>
<li><a class="reference internal" href="#known-issues-roadmap" id="id3">Known issues / Roadmap</a></li>
<li><a class="reference internal" href="#bug-tracker" id="id4">Bug Tracker</a></li>
<li><a class="reference internal" href="#credits" id="id5">Credits</a><ul>
<li><a class="reference internal" href="#authors" id="id6">Authors</a></li>
<li><a class="reference internal" href="#contributors" id="id7">Contributors</a></li>
<li><a class="reference internal" href="#maintainers" id="id8">Maintainers</a></li>
</ul>
</li>
</ul>
</div>
<a name="configuration"></a>
<h2><a class="toc-backref" href="#id1">Configuration</a></h2>
<p>You can configure some common name patterns for the inverse function
in Settings > General settings:</p>
<ul class="simple">
<li>Lastname Firstname: For example 'Anderson Robert'</li>
<li>Lastname, Firstname: For example 'Anderson, Robert'</li>
<li>Firstname Lastname: For example 'Robert Anderson'</li>
</ul>
<p>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.</p>
<p>You can use <em>_get_inverse_name</em> method to get lastname and firstname from a simple string
and also <em>_get_computed_name</em> to get a name form the lastname and firstname.
These methods can be overridden to change the format specified above.</p>
<a name="usage"></a>
<h2><a class="toc-backref" href="#id2">Usage</a></h2>
<p>The field <em>name</em> becomes a stored function field concatenating the <em>last name</em>
and the <em>first name</em>. This avoids breaking compatibility with other modules.</p>
<p>Users should fulfill manually the separate fields for <em>last name</em> and <em>first
name</em>, but in case you edit just the <em>name</em> field in some unexpected module,
there is an inverse function that tries to split that automatically. It assumes
that you write the <em>name</em> in format configured (<em>"Lastname Firstname"</em>, by default),
but it could lead to wrong splitting (because it's just blindly trying to
guess what you meant), so you better specify it manually.</p>
<p>For the same reason, after installing, previous names for contacts will stay in
the <em>name</em> field, and the first time you edit any of them you will be asked to
supply the <em>last name</em> and <em>first name</em> (just once per contact).</p>
<a name="known-issues-roadmap"></a>
<h2><a class="toc-backref" href="#id3">Known issues / Roadmap</a></h2>
<p>Patterns for the inverse function are configurable only at system level. Maybe
this configuration could depend on partner language, country or company,
as discussed at <a class="reference external" href="https://github.com/OCA/partner-contact/issues/210">this OCA issue</a></p>
<a name="bug-tracker"></a>
<h2><a class="toc-backref" href="#id4">Bug Tracker</a></h2>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/partner-contact/issues">GitHub Issues</a>.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
<a class="reference external" href="https://github.com/OCA/partner-contact/issues/new?body=module:%20partner_firstname%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<p>Do not contact contributors directly about support or help with technical issues.</p>
<a name="credits"></a>
<h2><a class="toc-backref" href="#id5">Credits</a></h2>
<a name="authors"></a>
<h3><a class="toc-backref" href="#id6">Authors</a></h3>
<ul class="simple">
<li>Camptocamp</li>
<li>Grupo ESOC IngenierĂa de Servicios</li>
<li>Tecnativa</li>
<li>LasLabs</li>
<li>ACSONE SA/NV</li>
</ul>
<a name="contributors"></a>
<h3><a class="toc-backref" href="#id7">Contributors</a></h3>
<ul class="simple">
<li>Nicolas Bessi <<a class="reference external" href="mailto:nicolas.bessi@camptocamp.com">nicolas.bessi@camptocamp.com</a>></li>
<li>Yannick Vaucher <<a class="reference external" href="mailto:yannick.vaucher@camptocamp.com">yannick.vaucher@camptocamp.com</a>></li>
<li>Vincent Renaville <<a class="reference external" href="mailto:vincent.renaville@camptocamp.com">vincent.renaville@camptocamp.com</a>></li>
<li>Guewen Baconnier <<a class="reference external" href="mailto:guewen.baconnier@camptocamp.com">guewen.baconnier@camptocamp.com</a>></li>
<li>Holger Brunn <<a class="reference external" href="mailto:hbrunn@terp.nl">hbrunn@terp.nl</a>></li>
<li>Jonathan Nemry <<a class="reference external" href="mailto:jonathan.nemry@acsone.eu">jonathan.nemry@acsone.eu</a>></li>
<li>Olivier Laurent <<a class="reference external" href="mailto:olivier.laurent@acsone.eu">olivier.laurent@acsone.eu</a>></li>
<li>Sandy Carter <<a class="reference external" href="mailto:sandy.carter@savoirfairelinux.com">sandy.carter@savoirfairelinux.com</a>></li>
<li>Alexis de Lattre <<a class="reference external" href="mailto:alexis.delattre@akretion.fr">alexis.delattre@akretion.fr</a>></li>
<li>Lorenzo Battistini <<a class="reference external" href="mailto:lorenzo.battistini@agilebg.com">lorenzo.battistini@agilebg.com</a>></li>
<li>Hans Henrik Gabelgaard <<a class="reference external" href="mailto:hhg@gabelgaard.org">hhg@gabelgaard.org</a>></li>
<li>Jairo Llopis <<a class="reference external" href="mailto:j.llopis@grupoesoc.es">j.llopis@grupoesoc.es</a>></li>
<li>Adrien Peiffer <<a class="reference external" href="mailto:adrien.peiffer@acsone.eu">adrien.peiffer@acsone.eu</a>></li>
<li>Ronald Portier <<a class="reference external" href="mailto:ronald@therp.nl">ronald@therp.nl</a>></li>
<li>Sylvain Van Hoof</li>
<li>Pedro Baeza <<a class="reference external" href="mailto:pedro.baeza@serviciosbaeza.com">pedro.baeza@serviciosbaeza.com</a>></li>
<li>Dave Lasley <<a class="reference external" href="mailto:dave@laslabs.com">dave@laslabs.com</a>></li>
<li>Graeme Gellatly <<a class="reference external" href="mailto:graeme@o4sb.com">graeme@o4sb.com</a>></li>
<li>Laurent Mignon <<a class="reference external" href="mailto:laurent.mignon@acsone.eu">laurent.mignon@acsone.eu</a>></li>
</ul>
<a name="maintainers"></a>
<h3><a class="toc-backref" href="#id8">Maintainers</a></h3>
<p>This module is maintained by the OCA.</p>
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
<p>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.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/partner-contact/tree/14.0/partner_firstname">OCA/partner-contact</a> project on GitHub.</p>
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>