Daily updates from Odoo
Thursday, August 26, 2021
5 changes
Resolved issues and error corrections
The payment follow-up workflow now keeps the existing reminder settings when someone chooses to be reminded later. It also prevents duplicate follow-up action names within the same company, making reminder setup clearer and less error-prone.
Original PR description
Pressing the "remind me later" button should : - neither change the follow up level - nor remove the auto/manual options - nor remove the possibility to change the next reminder date. Add a unicity constraint (per company) on the name of the payment follow up actions Task: 2308880
This fix restores access to worksheet templates for users who need them in field service tasks and quality checks. It ensures the system can safely retrieve the related model information without exposing unnecessary technical access, so teams can continue selecting and using worksheets as expected.
Original PR description
\* = industry_fsm_report and quality_check_worksheet Before this commmit, the access read to ir.model has been removed for users. So, the project user could not access to worksheet and cannot select a worksheet for fsm task. This commit adds `sudo` when it is necessary and adds new field to get the model in ir.model to use it in ir.rule defined in quality_control and industry_fsm modules. Related PR: odoo/enterprise#17633
Planning now records worked day counts with decimal precision instead of rounding each planning slot up to a full day. This prevents totals from being overstated when an employee has multiple slots on the same day, improving accuracy for planning reports and calculations.
Original PR description
`working_days_count` should be evaluated as a Float instead of an Integer, otherwise it could lead to incorrect result: suppose a user adds two slots on the same day and for the same employee. For now, `working_days_count` is an integer and its value is rounded up, so this field value for each slot will be 1 and therefore, even if the employee worked one day, the sum of `working_days_count` will be 2. From now on, `working_days_count` are stored as not-rounded floats (to remain as accurate as possible in the calculations). Note that, on client side, the displaying of this field will be automatically rounded: https://github.com/odoo/odoo/blob/e89b626f5411b7836030c6daa940b41f65747843/addons/web/static/src/legacy/js/fields/field_utils.js#L175-L174 Linked to OPW-2496638
A typo in the signing feature’s background request was corrected. This helps prevent a small technical error from interrupting parts of the document signing flow.
This change restores compatibility for report template rendering after a previous update changed the format returned by the rendering process. It helps prevent report-related failures in affected payroll and Studio workflows, keeping document generation reliable for users.
Original PR description
Partial revert of a6262db16ae89 (see #20189 which does similar fix) Community: https://github.com/odoo/odoo/pull/75377