Daily updates from Odoo
Wednesday, July 20, 2022
7 changes
Resolved issues and error corrections
This fix makes automated tests for spreadsheet date filters more consistent by using the right event when selecting dates. It reduces false test failures, helping development and releases stay predictable without changing user-facing behavior.
Original PR description
The tests using the new date picker were indeterministic. I'm pretty sure the problem was that the input was triggered by a click in the tests rather than by a "change" event. Odoo task 2925733
This update removes an unnecessary access restriction from Australian KeyPay settings. It prevents settings-related test failures and keeps the configuration behavior aligned with other accounting settings, with no expected impact for regular users.
Original PR description
Some settings are using the group "account.group_account_manager", which causes issue with a test on the settings. As this group is not really necessary, and no other accounting settings are using it, we can just remove it.
The app creator form now displays checkbox options with the correct spacing after the Bootstrap 5 update. This prevents confusing or misaligned fields when users configure a new model in Studio.
Original PR description
Since BS5, the checkbox input are visible, so we must set margin on the parent. Note in BS4 the input was hidden, and instead we rely on pseudo-element (`::before` and `::after`) Also removed `custom-control` class as not present in BS5 anymore.
This change fixes an unreliable automated test in the document spreadsheet area. It helps keep development checks stable so future updates can be delivered with fewer false alarms.
Historical refund values in the subscription dashboard are corrected so monthly recurring revenue reports show accurate totals. This ensures pivot views and past reporting data align with the fixed calculation, improving confidence in revenue analysis.
Original PR description
https://github.com/odoo/enterprise/commit/9812998643668bc1eaacef69e957b3ff66f0f6fc fixed the MRR computation but older value remained. These value were prefixed with the right amount but pivot views were still wrong for historical data. This commit and the associated upgrade script fix these values. taskid: 2909297
Fixed an issue where spreadsheets with a global filter set to a year could fail during export. Users can now export these spreadsheets reliably without the export crashing on year-based filters.
Original PR description
odoo-dev/enterprise@6645e89eacf8f40dcc46d9e4cb35bd41b9250220 introduced advanced year picking for global filter, but the year was returned as a year in the getter `getFilterDisplayValue()` instead of a string. This caused the export of the global filters to crash, since the export tried to call the method `.trim()` on a number. Odoo task 2896941
This fixes a styling issue where Odoo Studio used the browser's default font instead of the intended application font after the Bootstrap 5 migration. The change restores a consistent look in Studio, improving visual consistency for users without changing functionality.
Original PR description
Since BS5 migration, font in studio was not the same. This is because
it uses the SCSS variable `$font-family-base`, but in BS5 this variable
is set with:
```scss
$font-family-base: var(--#{$variable-prefix}font-sans-serif) !default;
```
but since it use `--#{$variable-prefix}` and there is no
`bootstrap_overridden.scss` for studio there was a missmatch and so no
font was set and use the default font set in the browser.
To avoid this, we set the `--#{$variable-prefix}` to empty to avoid
missmatch.