Thursday, September 24, 2026
2 changes · master
Code cleanup and technical improvements
This update consolidates how work entry type labels and color indicators are displayed across HR screens. It removes duplicate internal code, making the interface easier to maintain while keeping the visible experience consistent for users.
Original PR description
Unify the work entry type rendering logic to eliminate duplicate files and code: - Remove redundant `work_entry_type_badge_field.js` and `work_entry_type_badge_field.xml`. - Extend the `hr_work_entry.WorkEntryType` QWeb template to accept an optional `label` parameter, enabling it to render either a standalone color pill or a pill with an adjacent label. - Move `WorkEntryTypeBadgeField` into `work_entry_type_field.js` to keep all related field registrations in a single component directory. - Update `hr_work_entry.WorkEntryTypeBadgeField` and `hr_work_entry.Many2OneWorkEntryTypeField` templates to call the unified sub-template with their respective data. Task:6578031 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#289144
Removed an obsolete styling override for navigation dropdown spacing that no longer affects the interface. This keeps the enterprise code aligned with the main Odoo platform cleanup and reduces maintenance without changing how users interact with the navbar.
Original PR description
d364fc78a532 reset `--Dropdown_menu-margin-y` on `.o_main_navbar` to cancel the community navbar value. Dropdown menus are rendered in the overlay container, outside of the navbar, so neither declaration applied, and the variable is removed in community. task-6589485 Requires: - https://github.com/odoo/odoo/pull/289833 Forward-Port-Of: odoo/enterprise#132727