Monday, December 18, 2023
3 changes · master
Resolved issues and error corrections
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.