Daily updates from Odoo
Tuesday, June 4, 2024
4 changes
Enhancements to existing features
Salary attachment records now prevent changes to key fields once any related payslip has been completed or paid. This helps protect payroll accuracy by avoiding edits after payroll results have already been generated.
Original PR description
…st view In salary attachment user can change some fields even after the payslips have been generated the fields should be readonly when any one of the payslip is done or paid. so in this commit added a new boolean field and made a compute function to check the payslip state and made the necessary fields readonly using the boolean field. task-3794130
Department pages now include a clearer appraisal section, making appraisal-related information easier for HR teams to find and manage. A Swiss payroll setting was also adjusted to stay aligned with the updated employee certificate behavior.
Original PR description
* = hr_appraisal_survey,l10n_ch_hr_payroll removed ondelete which sets the default value in localization because removed the default value in hr module for certificate ux improvements in hr module -add section for appraisal in department form view Task-3491791
Translated messages now avoid automatic developer-style quoting and instead use consistent curly quotation marks around inserted text. This makes messages clearer for users and easier to adapt correctly across different languages and regions.
Original PR description
While using %r in translation strings to automatically quote strings without having to deal with escaping/choosing the right string delimiters seems like a good idea, it has a few issues:
- This doesn't work for non-string data types.
- Different languages use various quotation marks (e.g., “guillemets” in French, corner brackets in Chinese).
- Even in English, the common typographical recommendations suggest using curly quotes (“”) over straight quotes ("").
- It is not always clear whether it will produce single or double quotes.
For these reasons, this PR removes all instances of %r in translation strings, and replaces them with %s, surrounding them with curly quotes.
Community: https://github.com/odoo/odoo/pull/166859
Task-3942743Approval request owners are now emailed when their request is approved or refused. This gives requesters faster, clearer feedback without needing to manually check the approval status.
Original PR description
When an approval request is either accepted or refused, the owner is now informed via an email notification. This ensures immediate feedback to the requester about the status of their request. Task-3497571