Wednesday, November 2, 2022
2 changes · master
Enhancements to existing features
This update is intended to let users avoid receiving notifications simply because they are marked as responsible. It helps reduce unnecessary alerts and gives teams more control over which messages reach them.
Original PR description
Task-3032570
Resolved issues and error corrections
This update prevents errors when opening Belgian salary advantage records that use certain calculated contract fields. It also ensures the 13th Month benefit can correctly reference holiday-inclusive wages without triggering unnecessary recalculations.
Original PR description
…es_field_public and res_field_public selections The - cost_res_field_public and res_field_public - are selection fields consisting of 'hr.contract' fields. By default non-stored fields are not in…
…es_field_public and res_field_public selections The - cost_res_field_public and res_field_public - are selection fields consisting of 'hr.contract' fields. By default non-stored fields are not in the selection, unless we add them via _advantage_white_list method. Prior, some of the computed non stored fields that are used in the Advantages were not added explicitly and it caused traceback when we clicked on the records of those advantages that have non-stored fields set for cost_res_field_id and res_field_id. Moreover, prior wage_with_holidays was backlisted. it causes issues for the advantage "13th Month", where res_field_id is set to wage_with_holidays and as the field is blacklisted we have issues when res_field_public is computed as the field is not in the selection. Maybe wage_with_holidays was blacklisted as it does not make sense to set it to cost_res_field_id and cost_res_field_public consequently, but as cost_res_field_public and res_field_public use the same method to get fields, backlisting wage_with_holidays causes an issue.