hr_employee_second_lastname
Capture employees' first names along with paternal and maternal surnames so the combined display name reflects both last names.
Key Features
- hr.employee.base: Adds persistent firstname, first surname, and optional second surname fields to the shared employee base model so all variants can store the three components.
- hr.employee: Generates the display name by concatenating the available name components in the configured order, including support for last-first and comma-separated layouts.
- hr.employee: Keeps the component fields and the combined name synchronized on create, write, and onchange, and auto-splits any manually entered full name back into firstname, first surname, and second surname.
- hr.employee: Syncs firstname, first surname, and second surname to the linked partner records so user contacts mirror the employee's full name.
- hr.employee: Provides inverse name parsing helpers and an installation routine that reprocesses existing records to populate the new second surname field from stored full names.
- installation: The post-init hook clears previous split values, reruns the name parsing to fill all three components for every employee, and sets the default employee name order to first-last.
- hr.employee: Extends the employee form view to show an editable second last name field right after the primary last name.