Sunday, September 18, 2022
5 changes · master
Enhancements to existing features
This update reorganizes shared frontend asset files so they are included directly where they are used. It should have no visible effect for users, but helps keep the platform structure simpler and easier to maintain.
Original PR description
See community commit for details.
Resolved issues and error corrections
Form labels are now matched to fields using only visible view identifiers instead of internal technical IDs. This prevents labels from appearing blank or attaching to the wrong field, especially when forms contain repeated field names.
Original PR description
with its label Before this commit, when compiling the field to link the field with a previously found label, to search, we used in order : the 'id' (encoded on the arch), the 'field_id' (an internal technical ID), the 'name' (also in the arch). The issue with this is that the "field_id" is a technical id and shouldn't be used, to search the label. Now, we only search for the 'id' and the 'name'.
Miscellaneous changes
Fields param is actually not a kwargs. This cause a stack trace when opening a chat window (other than a chat with yourself) from a Kanban user avatar icon. Forward-Port-Of: odoo/odoo#100259
Original PR description
Fields param is actually not a kwargs. This cause a stack trace when opening a chat window (other than a chat with yourself) from a Kanban user avatar icon. Forward-Port-Of: odoo/odoo#100259
Since https://github.com/odoo/odoo/pull/76722, it is possible to cancel an approved time off. However, the calendar event created when the leave is validated is not archived when the leave is cancelled. This commit archives the calendar event when the leave is cancelled. task-2965754 Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: -- I confirm I have signed the CLA and read the PR guidelines at www.odoo
Original PR description
Since https://github.com/odoo/odoo/pull/76722, it is possible to cancel an approved time off. However, the calendar event created when the leave is validated is not archived when the leave is cancelled. This commit archives the calendar event when the leave is cancelled. task-2965754 Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#99731
In hr_holidays, the banner disappears when the number of days taken is more than the days allocated. Also, the count of the days is based on all existing allocations. This commit fixes the banner by allowing to display negative days remaining when there are more days taken than days allocated. It also fixes the count of the days by couting days only for active allocations. task-2983188 Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior
Original PR description
In hr_holidays, the banner disappears when the number of days taken is more than the days allocated. Also, the count of the days is based on all existing allocations. This commit fixes the banner by allowing to display negative days remaining when there are more days taken than days allocated. It also fixes the count of the days by couting days only for active allocations. task-2983188 Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#100446 Forward-Port-Of: odoo/odoo#100216