Daily updates from Odoo
Tuesday, February 13, 2024
2 changes
Resolved issues and error corrections
This fix resolves issues in Web Studio's view editor that were causing crashes and data corruption when editing views. The problem occurred because the full action context was being used when creating or modifying view-related objects, which contained incompatible data. The fix now uses a cleaned context for creating and updating objects while maintaining the full context for retrieving data, preventing crashes and ensuring correct data is saved.
Original PR description
Before this commit, and because of [1], the full action context was used to create or write any oject that edit_view would use. This caused two types of issues: - Checking the view integrity (_check_xml) sometimes crashed because the context keys (for modifiers) were present and return something else than a Boolean - creating objects with "default_" keys in the context ultimately failed, at best with a crash, at worst it ended up creating object with the wrong data. After this commit, we still retrieve stuff (the view, in particular) with the full context to have symmetry with the original get_view of Studio, but we write and create things with a cleaned context. opw-3718769 opw-3719815 opw-3703559 opw-3702620 opw-3702360 opw-3698111 opw-3698108 opw-3702084 [1]: https://github.com/odoo/enterprise/pull/54552/ Forward-Port-Of: odoo/enterprise#56424 Forward-Port-Of: odoo/enterprise#56372
This fix resolves an error that prevented employees from creating new time-off requests, showing an incorrect message about missing allocations. The issue has been corrected in the HR holidays module, allowing users to submit time-off requests without encountering this validation error.
Original PR description
The issue shows when the user creates a new time-off request  --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr