Friday, August 9, 2024
3 changes · saas-17.2
Resolved issues and error corrections
Financial report filters now take effect immediately when selected, instead of requiring users to close the filter panel first. The update also avoids unnecessary repeated loading when several filters are selected quickly, making report navigation feel faster and more intuitive.
Original PR description
It's really unintuitive and non-Odoo to have to close the filter box to be able to apply a filter on reports. Let's change that. We now delay let user click on filters while it's loading. We then delay filters that make a rpc call by 500 ms. The goal being that we don't do 5 calls if the user wants to select 5 journals. It implies several difficulties, including a reloading of the data or the options that were done when clicking. For that, we use loadingCallHash (to know if the options sent by the python are the ones needed to be reloaded). task-3912381
This fix stops Odoo from repeatedly retrying failed screens when several actions in the URL cannot be opened, preventing users from getting stuck in an endless error cycle. It also improves page reload behavior so previously opened dynamic screens can be restored correctly, making navigation more reliable.
Original PR description
- Open Accounting; - Open Bank Reconciliation; - Change the Company, to a company with not installed a chart of account. Before this commit, an infinity access error loop was raise. This occurs, because when an action is in an error on mounting on the action service, we try to mount the previous action, choose from a list of previously executed actions. The previous action, in this case, was also in error. In these case, it should go to the before last of the list, but as the previous one wasn't removed. It will try to mount it again, and create an infinity loop. opw-[4076702](https://www.odoo.com/web#id=4076702&view_type=form&model=project.task)
Duplicating records from list views now uses the same business context as duplicating from a form view. This prevents inconsistent copied records, such as rental sales orders missing rental-specific behavior when duplicated from a list.
Original PR description
Description of the issue/feature this PR addresses: - Adapting the fix for saas-17.2: https://github.com/odoo/odoo/pull/174137 It is found that context is never passed in '_duplicateRecords' function for list views, when making 'orm' calls from js side, while it is passed in 'duplicate' function of record.js, which is called when duplicating record from form view. 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