Thursday, June 27, 2024
3 changes · master
Resolved issues and error corrections
This fixes how subscription-related sales permission checks are tested by placing them with the module where they belong. It helps keep validation reliable for subscription sales and stock flows without changing day-to-day user behavior.
Original PR description
Related: odoo/enterprise#60912 https://github.com/odoo/enterprise/pull/65331/files#r1651151330
This update corrects an internal planning calendar test so it checks the expected event end time consistently. It also fixes the test setup to use a defined timezone, reducing false test failures caused by different machine settings.
Original PR description
Before this commit, a planning calendar test was wrong. In this test, we resized two events to make them end at 14:30 but then check that they end at 15:30 which is inconsistent. This commit adds a mockDate with a defined timezone which will prevent the test to depend on the machine local timezone.
The reporting option to hide lines with zero amounts now ignores informational text columns such as VAT numbers or countries. This helps users keep financial reports focused on meaningful amount-based entries without being blocked by non-financial details.
Original PR description
Some reports display some informational columns (like the VAT for a partner, or the country of origin). These columns sometimes prevent the `Hide Lines at 0` option to correctly do its work: the desired behavior of this option is to hide the lines where the amounts are null. It shouldn't care about the "informational" columns, that are usually always present This commit force the `Hide Lines at 0` feature to ignore columns displaying information other than float, integer of monetary ones. task-4006235