Monday, December 18, 2023
4 changes · master
Resolved issues and error corrections
When users open a link to a missing or incorrect record, Odoo now redirects them back to the default view instead of leaving a blank page. The warning notification still appears, and list navigation updates correctly when records no longer exist.
Original PR description
Before this commit, when opening a url with a bad id in form mode an error notification was shown and the page was blank After this commit, the page is redirected to the default view of the action and the notification is still shown TASK-ID: [3143552](https://www.odoo.com/web#action=333&active_id=133&model=project.task&view_type=kanban&cids=1&menu_id=4720) Description of the issue/feature this PR addresses: 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
This update makes automated tests less dependent on optional demo data across several Odoo apps. That helps reduce false failures and improves confidence that accounting, CRM, calendar, authentication, and other workflows behave consistently in different setups.
Original PR description
Description of the issue/feature this PR addresses: 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
Cohort reports now keep their action buttons visible even when filters or measure changes return no data. This helps users adjust the report without getting stuck on an empty-results screen.
Original PR description
This commit fixes an issue with the cohort view buttons which are not accessible when there is no data to display. This is annoying because it may happen when one changes the measures of the cohort view to one that won't display any data. This case has become quite common since https://github.com/odoo/enterprise/pull/46693/commits/684754430bc7062d7b69ea5b37e8aadc808c225c due to the fact that rows of null values are no longer sent by the python to be displayed in the cohort. The fix here is therefore to move the cohort view buttons from the renderer to the controller so that they can be displayed above the no content helper and are therefore always visible even when the renderer is not present due to empty data. Steps to reproduce: - go to any cohort view (ex: Helpdesk -> Reporting -> Tickets Analysis) - filter records with a giberish filter task-3626278
This update makes automated tests less dependent on preloaded demo data, so they produce more consistent results across environments. It helps reduce false failures and improves confidence when validating accounting, appointments, delivery, documents, and other business workflows.