Friday, March 27, 2020
3 changes · master
Resolved issues and error corrections
This fix ensures database save operations during web requests are handled in the safe retry flow. It reduces the chance of failed requests caused by temporary database conflicts and avoids using temporary routing information after it is no longer valid.
Original PR description
Since the ORM serialization automatic retry is done in the checked call, committing outside of this context could potentially cause a postgres exception without trying a retry like a checked call should. Forward-port of #46719.
Fixes several small issues in Odoo Surveys that affected live sessions, free text sections, leaderboards, answer chart highlighting, conditional navigation, and back button behavior. This makes survey participation and hosting more reliable, avoids duplicate leaderboard results, and prevents users from seeing empty or invalid pages.
Original PR description
PURPOSE After the latest developments on survey, notable sessions and "free text questions", a few minor bugs have been introduced. SPECIFICATIONS General specifications, see sub-commits for details: - When showing correct/incorrect answers on bar charts, the correct answers bars should not be faded out. - When going from the Leaderboard to the "Final Leaderboard", it should not duplicate the results. - Correctly handle "free text sections" in survey sessions. - Exclude pages that have no description in 'page_per_question' layout - Correctly navigate through survey with conditional questions activated - Fix minor issues with the "back" button on survey - Skip section with no active questions (when conditional questions configured) Task 2208574
This fix stops user groups from being deleted when they are still linked to access rules. It prevents accidental permission changes that could make rules apply too broadly and disrupt what users can see or do.
Original PR description
**Description of the issue/feature this PR addresses:** With a wrong manipulation you can unlink a group. During unlink - the `ir.model.access` is also unlink, - `ir.rule` are not unlink and become global **Current behavior before PR:** Go to runbot. Unlink Portal groups --> all Portal `ir.rule` become global --> there are lot of issue with access (you don't see all records). **Desired behavior after PR is merged:** You cannot unlink a group if it is used. @odony -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr