Daily updates from Odoo
Thursday, December 5, 2024
16 changes · 18.0
Resolved issues and error corrections
This fix keeps chatbots out of live chat calls, where they are not useful, and prevents a crash when users click a bot in the channel member list. It makes live chat interactions more stable and avoids confusing call participants.
Original PR description
This PR fixes two issues: - Chatbot is added to calls while it makes no sense. - Clicking on the bot in the channel member list leads to a crash. task-4354075 Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Fixes a mobile website issue that could prevent customers from scrolling during checkout. This improves the shopping experience on affected devices by ensuring the mobile navigation no longer interferes with page size while the header changes position.
Original PR description
Since [commit [1]](https://github.com/odoo/odoo/commit/189a7c96e6e26825dc05c0c6466576fe63aa091e), where the frontend scrolling was moved back out of the '#wrapwrap', an issue sometimes occurs with…
Since [commit [1]](https://github.com/odoo/odoo/commit/189a7c96e6e26825dc05c0c6466576fe63aa091e), where the frontend scrolling was moved back out of the '#wrapwrap', an issue sometimes occurs with the standard effect when scrolling on mobile page. Steps to reproduce: - Go to a website with "e-commerce" installed. - Use the devtools to display the website on a mobile device (note that the bug may only occur on certain mobile devices, so it might be necessary to test several to reproduce it). - Add a product to the cart and go to the "/shop/checkout" page. - Try scrolling down. - Bug: scrolling is blocked. The bug happens because, when the page starts scrolling with the "standard" header, there’s a short moment when the header has a "translate: transform" applied but is not yet "affixed." This creates a new coordinate system for the header and affects its child elements, like the "off-canvas mobile" navbar. As a result, the "off-canvas mobile" navbar temporarily changes the page size, which causes scrolling issues, especially on mobile devices. To fix this, we add "display: none" to the "off-canvas mobile" navbar during this short moment so it no longer affects the page size. [opw-4303667](https://www.odoo.com/web#id=4303667&cids=1&menu_id=4720&action=333&active_id=1695&model=project.task&view_type=form) [opw-4305493](https://www.odoo.com/web#id=4305493&cids=1&menu_id=4720&action=333&active_id=1695&model=project.task&view_type=form)
Primary-colored text now automatically uses a more readable shade when themes make the original color too light or low contrast. This keeps website, shop, and portal pages easier to read and more visually consistent, especially with pastel color palettes.
Original PR description
This PR normalizes rendering to improve readability for text elements using the `text-primary` class. While links benefit from a contrast-check feature [1], elements using `text-primary` rely on…
This PR normalizes rendering to improve readability for text elements using the `text-primary` class. While links benefit from a contrast-check feature [1], elements using `text-primary` rely on `$primary` (color-1) directly, resulting in color inconsistencies between links and text, as well as readability issues. The addition of "pastel palettes" [2] made this issue even more pronounced. This PR: - Adds `text-primary-emphasis` class to `text-primary` elements, taking priority. - Introduces a contrast-check for `text-emphasis-*` colors, ensuring links and "primary text" share the same color in cases of low contrast. If contrast is sufficient, the default Bootstrap computation is used. - Ensure that the `$component-active-color` contrast-check function has a color to compute against. [1] https://github.com/odoo/odoo/pull/58739 [2] https://github.com/odoo/odoo/pull/172463 task-4332082 | `18.0` reference palette | `18.0` pastel palette | this PR pastel palette | . | |--------|--------|--------|--------| |  |  |  | . | |  |  |  | . | |  |  |  | . | |  |  |  | . | |  |  |  | . | |  |  |  | . | task-4332082 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
The chat window’s conversation name and avatar are now easier to click because a small unresponsive area beside them was removed. This keeps the same visual spacing while making the more-actions interaction feel more reliable for users.
Original PR description
When mouse-hovering more actions (the conversation name & avatar), the clickable zone had a small dead zone on the left. This comes from `mx-1`, which put good spacing but had the unintentional deadzone spacing. This commit replaces the `mx-1` by equivalent extra padding, thus removing the deadzone while keeping the overall same spacing. Before / After <img width="391" alt="Screenshot 2024-12-04 at 16 50 52" src="https://github.com/user-attachments/assets/323d8ece-2965-49c3-acc6-d2e4590c1fb2"> <img width="390" alt="Screenshot 2024-12-04 at 16 50 38" src="https://github.com/user-attachments/assets/97ba506d-8fa4-4825-957a-5f22be9910fe"> Difference (red) <img width="1911" alt="Screenshot 2024-12-05 at 12 44 00" src="https://github.com/user-attachments/assets/aa7c9079-f2b4-467d-8e1f-58f2ce9b8da1">
This update refreshes the spreadsheet engine and fixes several issues affecting action buttons, pivot table cell selection, sheet naming, pivot formulas, and chart predictions. Users should see more reliable spreadsheet behavior with fewer errors in reporting and analysis workflows.
Original PR description
### Contains the following commits: https://github.com/odoo/o-spreadsheet/commit/a2652c5a2 [REL] 18.0.7 Task: 0 https://github.com/odoo/o-spreadsheet/commit/68e04cdb6 [FIX] action button: use…
### Contains the following commits: https://github.com/odoo/o-spreadsheet/commit/a2652c5a2 [REL] 18.0.7 Task: 0 https://github.com/odoo/o-spreadsheet/commit/68e04cdb6 [FIX] action button: use nextProps instead of this.props Task: 0 https://github.com/odoo/o-spreadsheet/commit/88aa2a7e6 [REV] pivot: select pivot cells in composer Task: 4189098 https://github.com/odoo/o-spreadsheet/commit/e84a864f8 [FIX] helpers: Add generic helper to sanitize sheet names Task: 4347719 https://github.com/odoo/o-spreadsheet/commit/de260ca22 [FIX] pivot: handle boolean-like function arguments in `getPivotCellFromPosition` Task: 4207502 https://github.com/odoo/o-spreadsheet/commit/02b6618d8 [FIX] charts: non-invertible matrix returns NaN as predicted data Task: 4328743 Co-authored-by: Anthony Hendrickx (anhe) <anhe@odoo.com> Co-authored-by: Alexis Lacroix (laa) <laa@odoo.com> Co-authored-by: Lucas Lefèvre (lul) <lul@odoo.com> Co-authored-by: Dhrutik Patel (dhrp) <dhrp@odoo.com> Co-authored-by: Adrien Minne (adrm) <adrm@odoo.com> Co-authored-by: Mehdi Rachico (mera) <mera@odoo.com> Co-authored-by: Rémi Rahir (rar) <rar@odoo.com> Co-authored-by: Pierre Rousseau (pro) <pro@odoo.com> Co-authored-by: Vincent Schippefilt (vsc) <vsc@odoo.com>
Opening a shared project task no longer automatically focuses the chatter area. This prevents unwanted scrolling, especially on mobile, so portal users land on the task details as expected.
Original PR description
… sharing The objective is to remove the focus on the chatter whenever a task is opened in project sharing. This aimed initially to avoid the automatic scroll to the bottom in mobile view. As a note: the Chatter component in project_sharing refers to the mail/chatter, however as project module also includes the portal/static/src/chatter/core/chatter_patch.js, Chatter template in project is overrided leading to autofocus triggering. To replicate: 1. Share a project with tasks to a user with Edit permission. 2. login with portal user and open the project portal view 3. Open a task. The focus should no longer be set on the Chatter automatically. 3-b. Also on Mobile, when opening a task the sreen should not scroll to the chatter. task: 4353290 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Messages that are not grouped together now show both the day and time, such as "Today at 10:00" or "Yesterday at 08:00". This makes busy conversations easier to follow when many messages were posted on the same day.
Original PR description
Follow-up of https://github.com/odoo/odoo/pull/188665 PR above changed "X days ago" on messages by time, so that the exact time can be viewed without requiring mouse-hovering. Indeed, after some…
Follow-up of https://github.com/odoo/odoo/pull/188665 PR above changed "X days ago" on messages by time, so that the exact time can be viewed without requiring mouse-hovering. Indeed, after some time, the rounding of the relative time tend to show relative day when message was posted but the datetime was lacking. However, by only showing time, when many messages are posted the same day, this becomes unclear to know the day the messages were posted, as the date sections do not have any sticky behaviour on viewport. Putting sticky behaviour on date section require more style change, which may probably be reserved for future improvements. This commit fixes the issue by showing the date of non-squashed messages, e.g. "Today at 10:00", "Yesterday at 08:00", "Dec 2 at 20:00", etc. Before / After <img width="194" alt="Screenshot 2024-12-05 at 11 42 33" src="https://github.com/user-attachments/assets/1c9cd1c9-d8d8-4700-88d1-2dba239c87c4"> <img width="265" alt="Screenshot 2024-12-05 at 11 42 18" src="https://github.com/user-attachments/assets/359a308c-a380-49af-986f-ab13839f013b">
The livechat window buttons now adapt their hover color to the customized chat header color instead of using a fixed white or dark style. This keeps actions visible and easier to use across default, white, dark, and customized livechat themes.
Original PR description
Chat window action mouse hover effect was hardcoded for white and dark theme. In livechat, the header color can be customised. With the default colors (purple background and white text), the hover…
Chat window action mouse hover effect was hardcoded for white and dark theme. In livechat, the header color can be customised. With the default colors (purple background and white text), the hover effect had white background, which made the action not visible. This commit fixes the issue by using a slight color invert when mouse hovering the action of a chat window, so that the color is slightly different from header color while keeping icon color distinguishable. Before / After <img width="390" alt="Screenshot 2024-12-04 at 17 10 23" src="https://github.com/user-attachments/assets/f4993b05-5f69-4de6-8423-fc69f7b2bdd7"> <img width="393" alt="Screenshot 2024-12-04 at 17 09 37" src="https://github.com/user-attachments/assets/1c867d1a-8df8-46e3-ae04-e68154e169a5"> White and dark theme are more catchy as a result: Before / After (white theme) <img width="394" alt="Screenshot 2024-12-04 at 17 11 16" src="https://github.com/user-attachments/assets/e29578ca-8b15-45d9-828a-aa65b43a6b23"> <img width="384" alt="Screenshot 2024-12-04 at 17 11 40" src="https://github.com/user-attachments/assets/025b2145-b783-4ab0-bf94-44fe24d32d81"> Before / After (dark theme) <img width="389" alt="Screenshot 2024-12-04 at 17 11 05" src="https://github.com/user-attachments/assets/be50f34d-7468-415b-b365-734fed3e9001"> <img width="387" alt="Screenshot 2024-12-04 at 17 11 59" src="https://github.com/user-attachments/assets/8a0a8c09-c179-4e1e-befe-0fcdff3a181c">
This fixes an issue where exporting customizations from Studio could fail when duplicate internal records existed for the same customization. The export wizard now filters its default data correctly and avoids preselecting unsuitable technical items, making Studio exports more reliable.
Original PR description
Since [1], the export wizard default export data domain has changed but it was not at all in the scope of the faulty commit. This leads to a validation error when a new wizard is created if there is multiple 'ir.model.data' records created in the context of Studio and pointing to the same records. This is often the case for instance for 'ir.model.inherit' records. This commit reintroduces the missing domain part, while adding a test. [1]: https://github.com/odoo/enterprise/commit/99f3591316891e1c2373ed0b3b7e786c0a6b8457
Creating a vendor bill from merged finance documents no longer fails due to overlapping document updates. The Documents app now waits for the bill creation action to finish and safely handles cases where no document is selected, preventing user-facing errors during PDF merge and follow-up actions.
Original PR description
[FIX] documents: fix error when creating vendor bill from split tool How to reproduce: - Install documents_account - In Document App, folder “Finance”, select 2 pdf - Click on Action -> Merge PDFs -…
[FIX] documents: fix error when creating vendor bill from split tool How to reproduce: - Install documents_account - In Document App, folder “Finance”, select 2 pdf - Click on Action -> Merge PDFs - Click on “Create Vendor Bill” You get an error “psycopg2.errors.SerializationFailure: could not serialize access due to concurrent update” The error was caused by the update of the pdf preview during the execution of the action “Create Vendor Bill” (which both update the document). We solve the problem by waiting the execution of the action before executing the rest (especially the update of the preview). [FIX] documents: fix traceback after some action How to reproduce: - Install documents_account - In Document App, folder “Finance”, select 2 pdf - Click on Action -> Merge PDFs - Remove the scissors to merge the 2 documents - Click on “Create Vendor Bill” You get the error: Cannot read properties of null (reading "querySelectorAll"). This is the most reliable way to reproduce the problem but that problem occurs also in other circumstances, for example sometimes when moving to trash documents after some other actions. We solve the problem by returning an empty selection when there are no element. Task-4381458
The automated tour for Knowledge article commands has been updated to work with the current editor behavior. This helps ensure the Knowledge app remains properly tested and reduces the risk of unnoticed issues reaching users.
Original PR description
In this commit, we fix knowledge_article_commands_tour by adapting the steps that concern the odoo editor in order to reactivate this tour.
This fix ensures key document-related automation is restored correctly when upgrading to version 18.0 if customers previously removed related document tags. It also prevents those restored records from being recreated again on later updates, reducing unexpected changes after the upgrade.
Original PR description
server actions that use document tag should be noupdate as well because document tag records are noupdate, and they could be deleted by clients. possible steps to reproduce: 1) make a database 17.0 2) delete document tags 3) upgrade the database to 18.0 Document tags and server actions should be recreated in upgrade scripts when upgrading to 18.0 if they are missing. Setting the noupdate=1, makes sure that they are not recreated on subsequent updates or upgrades after reaching 18.0. odoo/upgrade#6803
The Documents app now correctly copies shareable links when users select files from the list view. This prevents blank or missing links, making it easier for users to share documents reliably.
Original PR description
In list view, the "Copy links" [action](https://github.com/odoo/enterprise/blob/0c2b8ab5c0675485a8dbde3371e347f43250a66e/documents/static/src/views/search/documents_control_panel.xml#L42) was returning empty string (or undefined), since we haven't added the field `access_url` to the list view, so accessing it on the `record.data` [from JS](https://github.com/odoo/enterprise/blob/7a65d1e776ea486538cfc9762cb482fd71bf9dc1/documents/static/src/views/search/documents_control_panel.js#L262) returned `undefined`. Now, we add `access_url` field as a hidden field in the list view. opw-4309365
This update fixes several Planning issues for employees with flexible or fully flexible working calendars. It improves Gantt view accuracy and appearance, corrects demo employee cost data, and ensures recurring shifts are assigned as expected even when overlaps occur.
Original PR description
Fixed a series of issues related to flexible and fully flexible resource introduced in task 3762895. In this PR, the following issues are fixed in the planning app: - In dark mode, the progress bar…
Fixed a series of issues related to flexible and fully flexible resource introduced in task 3762895. In this PR, the following issues are fixed in the planning app:
- In dark mode, the progress bar of resources working fully flexible hours had white background instead of transparent. Step to reproduce:
1. Open the gantt view, create a resource with fully flexible hours and assign it to a task.
2. The progress bar should not have a white background on dark mode.
- Fully flexible employee Suman Oza had no hourly cost set in demo data. Step to reproduce:
1. Go to the employees view and search for Suman Oza.
2. The hourly cost should be no longer be set to 0.
- Flexible employee should have the period outside of their contract grayed in the Gantt view Step to reproduce:
1. Create a resource with flexible hours.
2. Set a contract with a start and end date.
3. Open the gantt view in planning, and search for the resource.
4. The period outside of the contract should be grayed.
- In gantt view sparse mode view, the color of the progress bar (the thin line above each employee and each day) of resources working fully flexible hours should be always in purple color. Step to reproduce:
1. Create a resource with fully flexible hours.
2. Create some shifts for the resource.
3. Open the gantt view in sparse mode.
4. The progress bar should be in purple color.
- Recurring shifts for fully flexible employees are now assigned even if they generate conflicts with existing shifts. (test was added to ensure this behavior) Step to reproduce:
1. Create an employee working fully flexible hours.
2. Plan some shifts for the employee.
3. Create a recurring shift for the employee which ovelaps with the existing shifts.
4. The recurring shifts should be assigned to the employee even if they generate conflicts with existing shifts.
task-id: 4189386This fix ensures projects linked to shared documents are visible to portal users when needed. It keeps document access working as expected after related access rules changed, preventing failures for external users or automated checks.
Original PR description
Before this commit, the test fails due to the changes made in community to avoid having an access token if the project visibility is private. This commit makes sure the project visibility is `portal` to be able to set an access token as before. opw-4104804 task-4354145
The document deletion test tour has been adjusted to avoid timing-related failures caused by an error dialog appearing during automated checks. This helps keep validation runs more stable and faster, reducing false alarms for teams relying on test results.
Original PR description
In this commit, we fix the tour documents_delete_tours in which there is an error message that said: " Record does not exist or has been deleted. " As there is a modal in DOM, the next step could not be passed (depends on time the modal appears).