Monday, July 1, 2024
5 changes · 17.0
Resolved issues and error corrections
This fix ensures Chilean invoice reports display the unit price using the correct template logic. It helps prevent missing or incorrectly rendered pricing information on customer-facing invoice documents.
Original PR description
We should add the price_unit via a `t-out` attribute, using a condition inside, rather than trying to use `t-if`. This was missed in resolving fw-port issues. --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
The Time Off accrual kanban cards now use the actual underlying values instead of localized display text when deciding what to show. This prevents incorrect accrual caps or maximum leave details from appearing, especially for users in languages that use comma decimal separators. Translation template files were also refreshed to stay current.
Original PR description
Use of the record.{field}.value was causing the displayed (string) values
to be used in the kanban card's t-if logic rather than the actual value
of the field. This resulted in
- `record.cap_accrued_time.value` ALWAYS being evaluated as True (since
"False" is True)
- `record.maximum_leave.value > 0` evaluating as True when the language
wasn't a language that uses "." as it's decimal separator. e.g.
"5.00" > 0 == True but "5,00" > 0 == False
opw-3999753
Also, re-export the pot file since it was noticed that it's no longer correct.
---
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-prThis fixes an issue where links containing only dynamic template content could disappear after saving an email template. Users can now safely include customer or record-specific values inside links without losing them during editing.
Original PR description
The `isVisible` function did not consider those as visible. This had the side effect that they would be removed when they were the only child of a link since we remove links that do not have visible content. Steps to reproduce: - Go to Email Templates in debug mode - Open the code view and add `<a href="#"><t t-out="object.name"></t></a>` - Save - Notice that the link and the t-out have been lost opw-3990415
Dragging calendar events in month view now preserves the original event time instead of resetting it. This prevents accidental schedule changes and makes calendar rescheduling more reliable for users.
Original PR description
Specification: The time should not be reset when dragging an event in the month view. Observed behavior: Time is reset when dragging an event in month mode. Expected behavior: Time shouldn't reset when dragging an event in month mode. Task-3432065
This update fixes the invoice extraction tests to work reliably regardless of whether demo data is loaded. Previously, tests would fail if demo data wasn't present, causing inconsistent results. Now the tests are self-contained and produce consistent outcomes in all environments.
Original PR description
Removed dependency on demo data for the TestInvoiceExtractPurchase tests, as they would previously fail if the demo data had not been loaded. Now the results will be consistent, no matter if the demo data is present. Task-3957718 Forward-Port-Of: odoo/enterprise#65742 Forward-Port-Of: odoo/enterprise#65660