Wednesday, June 18, 2025
10 changes · 18.0
Resolved issues and error corrections
This fixes a small timing precision issue in manufacturing work orders that could cause automated checks to fail unpredictably. By standardizing timestamps to whole seconds, the system avoids tiny calculation differences that do not affect real operations but can disrupt validation.
Original PR description
The `_set_duration` inverse method of `mrp.workorder` is ignoring microsecond variations when computing the `date_start `of a workorder productivity record. This method uses the current time as the end date but does not remove microseconds from it. This causes a intermittent error when running the `test_labor_cost_balancing_with_cost_share`, because the computed duration (around 0.03 hours or 1.8 seconds) can vary slightly depending on the microseconds captured by `datetime.now()`. This fluctuation results in a 1- or 2-second difference, which breaks the test. To fix it, we simply set the microsseconds of the end date to zero. This bug was introduced in: https://github.com/odoo/odoo/pull/211853 Runbot failure example: https://runbot.odoo.com/odoo/runbot.build.error/226657 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Triple-clicking text in the HTML editor now selects the full paragraph even when it contains manual line breaks. This makes text editing more predictable and prevents users from accidentally selecting only part of a paragraph.
Original PR description
Problem: When a paragraph contains a `<br>` element, triple-clicking on any line does not select the entire paragraph — only the clicked line is selected. Solution: Ensure that on triple click, the selection expands to include the entire block, regardless of inline breaks like `<br>`. Steps to reproduce: - Open the Todo app. - Add a paragraph of text. - Use `Shift+Enter` to insert a line break (`<br>`). - Add text on the second line. - Triple-click on the second line. → Only the second line is selected, not the full paragraph. opw-4825816 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This fix prevents list items with line breaks from being split into multiple separate blocks when users toggle list formatting. It keeps edited content grouped correctly, reducing unexpected layout changes in the HTML editor.
Original PR description
**Current behavior before PR:** - When a list contains content separated by **Shift+Enter** toggling the list would break these lines and create a separate base container for each segment separated by `<br>`. **Desired behavior after PR is merged:** - Only a single base container is created when toggling a list that contains **Shift+Enter** contents. task:4854372
This fix ensures invoice or accounting lines without taxes are handled correctly when tax totals are summarized in the user interface. It prevents incorrect grouping behavior so displayed tax summaries remain accurate and consistent.
Original PR description
In 540e4243f4 we modified the `_aggregate_base_line_tax_details` method so that base lines without any taxes are no longer automatically grouped under the `None` / `null` grouping key and are instead also passed to the grouping function which evaluates a grouping key for them. As part of this improvement, all existing grouping functions needed to be adapted to explicitly return `None` or `null` for base lines with no tax. We forgot to modify the grouping function which computes the tax totals summary in JS. task-none
This update adds test coverage to ensure website page anchors are handled correctly when suggesting links in the editor. It helps prevent regressions in link creation and keeps website editing more reliable for users.
Original PR description
Before this commit: we have basic test for the url autocomplete in the linkpopover, but we miss the case for the page anchors After this commit: we added the page anchor test, also updated the icon path to the one inside website module Related PR: https://github.com/odoo/odoo/pull/187091 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Users without administrator access can now open the Calendar app when Microsoft Calendar synchronization is enabled. This prevents an access error caused by reading the Microsoft Calendar token during synchronization, improving reliability for everyday calendar users.
Original PR description
Steps: - Open Calendar app without group_system access right Actual result: - Access error due to microsoft_calendar_token field Expected result - No error opw-4850523 Caused-by: https://github.com/odoo/odoo/pull/150186
This fixes a storefront issue where shoppers could not zoom images opened in the product image carousel. Product photos can now be inspected more closely as intended, improving the shopping experience when zoom is enabled.
Original PR description
## Version
18.0+
## Issue
Carousel images are not zoomable on product's website view
## Steps to reproduce
- Select any product and move to `Sales` tab:
- Add 1 image under `ECOMMERCE MEDIA` section.
- Click `Go to website` and open edit mode:
- Select the main image in the view;
- In the editor, change the `Image Zoom` value for `Pop-up on Click`;
- Save and close the editor.
- Click on the main image to display the carousel:
- Hover the current image and try to zoom in or out *(using the mouse wheel or equivalent action on trackpad)*
opw-4831912This fix prevents translated product names from appearing twice in sales order line descriptions when a newline was missing. It keeps sales documents clearer and avoids confusing product descriptions for users and customers.
Original PR description
This commit fixes an issue from [1] when the SOL description did not include a newline after the translated product name, which caused it to show unexpectedly. opw-4760300 --- 1. https://github.com/odoo/odoo/pull/209141 Related: - https://github.com/odoo/odoo/pull/214571 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
SEPA Direct Debit batch payments can now be validated even when the pre-notification email template is unavailable or intentionally disabled. This prevents validation failures for customers who do not want these emails sent, improving reliability of payment processing.
Original PR description
Current Behavior: When validating a SEPA Direct Debit batch payment, Odoo automatically attempts to send a pre-notification email using the email template account_sepa_direct_debit.email_template_sdd_pre_notification. If this template is missing (e.g. deleted or unlinked), the process fails with a ValueError: External ID not found, and the batch cannot be validated. Expected Behavior: If the template is missing, no pre-notification email should be sent, but the batch validation should still proceed without error. The process must not raise a traceback or prevent validation. task-4815699
This fix adjusts project and timesheet test coverage so checks for allocated hours run in the right module context. It helps prevent false test failures when the timesheet grid feature is not installed, improving reliability without changing day-to-day user behavior.
Original PR description
After this commit https://github.com/odoo/enterprise/pull/74528/commits/c0af404c2b3e08ec92243f4c070f915833b4a538 some tests are failing when we don't have timesheet_grid module installed as the allocated hours will get recomputed so the behavior will be different. To fix this we moved all of the tests that test allocated hours value to timesheet_grid and adapted another test to check whether we have the timesheet_grid module installed or not and upon this check we change the value that we are checking. runbot-115003