Tuesday, October 24, 2023
1 change · master
Resolved issues and error corrections
Fixed an issue where reports did not automatically hide zero-value lines when that setting was meant to be enabled by default. This ensures users see cleaner financial reports immediately, without needing to manually reapply the filter.
Original PR description
In pull request https://github.com/odoo/enterprise/pull/45291, we introduced a new feature that allows you to apply a filter on a report, enabling the ability to hide lines with zero values based on certain conditions. With this enhancement, you can now configure the filter to have one of three settings: "enabled by default," "optional," or "never." Prior to this commit, the "enabled by default" setting was not functioning as expected. This issue came from an initial check within the first if statement that evaluated previous options. The problem was that when you initially entered the report, the previous options dict were empty, and so the options is put to false which was not the intended behavior. task: 3568441