Daily updates from Odoo
Monday, April 8, 2019
5 changes · master
Enhancements to existing features
This update reduces the number of database checks needed when loading website pages, especially around menus, permissions, and translated fields. The goal is to make pages more efficient to serve without changing what users see or how they interact with the website.
Original PR description
Optimise out various queries to try and make page loading faster: * don't mark fields with a callable translate function as prefetchable (the translate function pretty much always generates an additional query if not more, often despite not caring about the field's content at that point) * only check access rights when actually necessary in use read (don't fetch access rights info if we're not reading any private field) * build website menu tree in memory to avoid needing to deref each item's children and read them: can fetch & read all relevant information at once (~3 queries as there's a computed field in there) instead of 6-ish * wrap a few qcontext props in lazy proxies as they seem unnecessary for most pages Result: gain of 9 queries, no noticeable change in actual runtime * before: 32 queries, 17ms (sql), 50ms (all) * after: 23 queries, 15ms (sql), 50ms (all)
HR Officers now see a warning when a user is not linked to an employee profile, helping prevent timesheet access issues. The update also limits a permission workaround so user view access rules are less likely to show fields to the wrong people.
Original PR description
… access rights - while creating new user, show warning to create a linked employee if it has a access rights for timesheet. Task: 1916925 Description of the issue/feature this PR addresses: Alert when creating a User that has timesheet access rights Current behavior before PR: Improve user creation with timesheet rights Desired behavior after PR is merged: Alert when creating a User that has timesheet access rights Task: https://www.odoo.com/web#id=1916925&action=327&model=project.task&view_type=form&menu_id=4720 Pad: https://pad.odoo.com/p/r.e9fc07be000a9ea34cf1fae046162f6d -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
The survey setup form has been reorganized with clearer field names and placement, making it easier for users to configure surveys. This should reduce confusion for teams creating or maintaining survey content without changing the core survey process.
Original PR description
Task #1949652 Some fields were renamed/moved around to improve the survey.survey form usability. -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Survey participants now see a retry option when they are allowed to retake a survey, including non-scored surveys and review pages. This makes it simpler for users to quickly repeat a survey after completion or review, improving the overall survey experience.
Original PR description
This merge improves UX to easily retake the survey they either passed (in case of non scoring survey) or failed (in case of scoring survey). It adds a retry button not only in case of failed scoring survey (like it was already the case) but also for non scoring survey : - At the end of the survey (result page) - In the review survey page Task ID : 1950429
Odoo Studio now lets users show invisible elements while editing Kanban views, making it easier to find and restore fields that were previously hidden. The update also ensures the sidebar selection resets correctly when switching tabs, reducing confusion during view customization.
Original PR description
Add 'show invisible elements' checkbox in the kanban view. Task: https://www.odoo.com/web#id=1911515&action=327&model=project.task&view_type=form&menu_id=4720 Pad: https://pad.odoo.com/p/r.325d95b7d09010f25432e687fbd1051e