Daily updates from Odoo
Wednesday, June 11, 2025
9 changes · 18.0
Resolved issues and error corrections
A Belgian tax description was corrected so it now accurately shows 0% VAT for services instead of incorrectly referring to 6% VAT. This helps users see the right tax information in accounting records and reduces confusion in Belgian localization setups.
Original PR description
- Before this commit: The tax with ID `attn_VAT-OUT-00-S`, which represents a `0% Service Tax`, had an incorrect description `6% VAT (Services)` instead of `0% VAT (Service)`. - After this commit: The typo has been corrected by updating the description to accurately reflect the tax rate as `0% VAT (Service)`. Task-4855172 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Invoice reports now display the Terms and Conditions section across the available page width when needed. This improves readability for longer or multi-line terms and removes unnecessary blank space on printed invoices.
Original PR description
**Issue** The "Terms and Conditions" section in the invoice report only takes up half of the page, leaving unnecessary blank space on the other half. **Steps to Reproduce:** 1. Install the Accounting…
**Issue** The "Terms and Conditions" section in the invoice report only takes up half of the page, leaving unnecessary blank space on the other half. **Steps to Reproduce:** 1. Install the Accounting app. 2. Navigate to Accounting > Customers > Invoices. 3. Create or open an invoice. 4. Add a multiline text in the "Terms and Conditions" field. 5. Confirm and print the invoice report. 6. Observe that the content only fills half the available width. **Expected Behavior:** The "Terms and Conditions" text should utilize the full width of the report layout if needed, especially for multiline entries. **Actual Behavior:** The text is constrained to half the page, reducing readability and leaving unused space. **Root Cause** The issue was introduced by PR #193399, which added the `overflow-auto` class to address a display bug from ticket 4416845. However, this class was applied too broadly, affecting the layout of the "Terms and Conditions" block. **Fix** To address this issue, a class is added specifically to the terms and conditions div to control its display. opw-4698250 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Clicking an image inside an editable paragraph now opens the image toolbar instead of the text toolbar. This prevents confusing editing options and makes image editing behave as users expect.
Original PR description
Current behavior before PR: - Clicking an image inside `<div class="o-paragraph">` opened the text toolbar. This is because the selection traversed a whitespace text node that was not filtered out. Desired behavior after PR is merged: - This fix filters out such nodes to show the correct (image) toolbar. task-4844821 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
When a user removes a file or image from a mail attachment list, the editor now also removes the matching reference from the message content. This prevents recipients and users from seeing broken links or missing images caused by deleted attachments.
Original PR description
Description of the issue this PR addresses: Current behavior before PR: Attachments like files and images removed from the mail attachment list were still present in the editor, resulting in broken links and 404 errors. Desired behavior after PR is merged: Removing an attachment from the list also removes its reference from the editor. task-4794954 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Removing formatting from colored table cells in the HTML editor no longer causes an error. This makes editing tables more reliable when users clear background colors or formatting.
Original PR description
**Current behavior before PR:** Steps to reproduce: - Create a table. - Select some cells, apply background color on them. - Try to remove format using removeFormat button. Trying to remove format from the colored cells leads to traceback `Infinite Loop in removeAllColor()`. The issue happens because after merging commit [1], when applying background-color on cells, text-color will also get applied along with background-color. When trying to remove color using removeFormat button, `applyTableColor` method fails to remove text-color from cells despite having color on them, leading to infinite loop error. **Desired behavior after PR:** Now, background-color is removed from cells without any traceback. [1]: https://github.com/odoo/odoo/commit/616413c3272429ec48a6ac238c899b31d0751546 task-4805468 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
The table of contents in the HTML editor now shows heading levels with consistent indentation, even in unusual heading sequences. This makes generated outlines easier to read and helps users understand document structure more accurately.
Original PR description
Prior to this commit, headings indentation was inconsistent in some edge cases.
Example:
```
<h3>
<h2>
<h3>
<h2>
<h3>
```
would appear instead of:
```
<h3>
<h2>
<h3>
<h2>
<h3>
```
Desired algorithm:
- Indent heading by 1 unit to the right of the previous strictly lower heading, or no indent
task-4836337Leave requests for employees on flexible schedules now correctly exclude applicable public holidays, even when those holidays are not tied to a specific working calendar. This prevents employees from being charged extra leave days when a company public holiday falls during their time off.
Original PR description
<b>Steps to reproduce:</b> 1) Create a flexible working schedule 2) Assign this working schedule to one of the employees 3) Create a public holiday with no calendar 4) Create a leave for the flexible…
<b>Steps to reproduce:</b> 1) Create a flexible working schedule 2) Assign this working schedule to one of the employees 3) Create a public holiday with no calendar 4) Create a leave for the flexible employee where the public holiday will be during his leave 5) Notice the duration of the leave <b>Issue:</b> Previously, leave duration did not exclude public holidays without calendars or holidays associated with a different company than the employee's when using flexible schedules. For example, if an employee took 5 days off and one of those days was a public holiday without a calendar, the system would incorrectly count all 5 days instead of excluding the public holiday. <b>Cause:</b> This issue occurs because the system only checks for public holidays with calendars during the leave period and excludes those days from the leave duration. However, if the public holiday does not have a calendar or is assigned to a different company than the employee's, it is not excluded from the leave days/hours. https://github.com/odoo/odoo/blob/7293a04bd90c26cb27669f5a1c9edd45c7e5c96c/addons/hr_holidays/models/hr_leave.py#L428-L438 <b>Fix:</b> We now exclude public holidays from the leave duration even if they do not have a calendar, as long as the holiday belongs to the same company as the leave request. opw-4711942
Users can now drag and drop files anywhere in the Documents screen, even when the view is filled with existing files. This removes a usability issue that made uploads difficult when there was little empty space available.
Original PR description
Steps: - Install `documents` - Open documents - Try to drag a file from your file explorer to documents A document can only be dragged into a free zone, i.e. not into areas of the screen where a record (file) is. This makes drag'n'drop less practical when a user has a lot of files, leaving almost no space left on the screen. opw-4699728
Fixes issues where adding, completing, or cancelling activities from the Documents kanban view did not immediately update the related chatter or could trigger an error. This makes activity handling more reliable and avoids users needing to refresh the page.
Original PR description
Case 1: How to reproduce ================ - Select a record in any folder in Kanban view - Display its chatter - Add an activity from the kanban tile --> the chatter is not updated and needs a refresh Expected behavior ================= Chatter should update instantly Case 2: How to reproduce ================ - Select a record in any folder in Kanban view - Display its chatter - Mark done or cancel one or more activities from Chatter - Click on the activity button of the related kanban record --> stack trace Expected behavior ================= Corresponding KanbanRecord should update. Note: v. 17.4 raises a missing record exception for the same case task-4690165