Daily updates from Odoo
Monday, July 12, 2021
4 changes
Enhancements to existing features
Odoo now uses one consistent redirect response method across affected apps, making navigation behavior more reliable and easier to maintain. The change also updates the default redirect behavior and removes older compatibility handling, which may require related custom code to be adjusted.
Original PR description
This branch add request.redirect on all requests. In case of a front end request, we do an url_for to the location. We removed redirect_with_hash that was only for retro compatibility local_redirect…
This branch add request.redirect on all requests. In case of a front end request, we do an url_for to the location. We removed redirect_with_hash that was only for retro compatibility local_redirect has been renamed to redirect_query, and param keep_hash has been removed and moved. Default code for redirect is 303 now instead of 302. Now redirect and redirect_query make local redirect by default, you need to pass local=False to make external redirect. All werkeug.utils.redirect has been replaced by request.redirect. Http.redirect now use an http.Response type, and it become easy to add an override like 'set_cookies' e.g. Dispatch of a website.page return an http.response too, so we first need to check if it is a cached version before to check if it is an Odoo Response. Migrate your code: http.redirect -> request.redirect(location, code, local) http.local_redirect -> request.redirect_query(location, query, code, local) http.redirect_with_hash -> request.redirect Courtesy of odony for help and review ;) See commit 478068c82999eaf77fd2b68659bb3fb3d3c2872f
The Belgian VAT listing is now easier to review by sorting entries by VAT number, including archived partners, and adding direct access to related invoices. This helps accounting teams validate VAT reporting more quickly and with better traceability.
Original PR description
* Sort the report by vat number * Add link to impacting invoices * Do not exclude archived partners [task-2495556](https://www.odoo.com/web#id=2495556&model=project.task)
HR Referral users can now archive rewards that are no longer available instead of deleting them. This helps keep past referral reward history intact while removing outdated rewards from active use.
Original PR description
Purpose ======= Now, the user can't archive a rewards, if the rewards is not available anymore he can only delete it, and loose the history. TaskID: 2586019
The Helpdesk ticket analysis report has been updated to make performance statistics easier to understand and use. Labels, default groupings, measures, and dashboard links were refined so teams can review ticket outcomes, ratings, closure times, and hours spent more effectively.
Original PR description
Purpose of the task is to improve the ticket analysis report so in this commit did the below changes: - change the helper to: "Create tickets to get statistics on the performance of your teams." - rename the action and the menu item into 'Tickets Analysis' - pivot view: remove the default group by stage and keep the one on the creation date - hide the color index measure - rename 'rating last value' into 'Rating (/5)' - rename 'total hours spent' into 'Hours Spent' TaskID: 2531500