Daily updates from Odoo
Wednesday, December 11, 2024
11 changes
1 change
Resolved issues and error corrections
This fix adjusts how online store stock-related product option code is loaded so that the right behavior is applied consistently. It helps prevent custom product variant logic from being skipped due to file loading order, reducing the risk of incorrect storefront behavior.
Original PR description
### Current behavior before PR: While working on this https://github.com/odoo/enterprise/pull/74813/commits/337ea18baebdf4c896bc3e503448207fd9095991 we were overriding a method in VariantMixin but it was shadowed and not executed this was happening because of the order JS is loading the files when importing website_sale. ### Desired behavior after PR is merged: After discussing with XBO, we are removing the import of website_sale from variant_mixin.js and moving the overridden method to website_sale.js to avoid having this problem in the future.
3 changes
Resolved issues and error corrections
The Moroccan reports module now lets users manually edit the Payment Channel value even though it is calculated automatically. This fixes cases where the automatically suggested payment channel needs correction, improving reporting accuracy without workarounds.
Original PR description
Upgrade PR: https://github.com/odoo/upgrade/pull/6842 task-4226448
The appointment website test now creates the data it needs during the test instead of relying on preloaded demo data. This helps keep automated checks stable across environments and reduces the risk of false failures during releases.
Original PR description
With this PR [1](https://github.com/odoo/enterprise/pull/72612), without demo data tour(test_searchbar_within_appointments) was failing, so required data created on the fly. runbot: 109512
This update restores expected behavior in Documents and Marketing Automation after a shared technical change affected kanban views. Users should see more reliable document selection and proper confirmation prompts when deleting parent marketing activities.
Original PR description
The documents and marketing_automation apps previously used some information in the "list" prop that was removed in favor of a optional field "groupByField" for simplification purposes. See changes introduced by https://github.com/odoo/odoo/pull/189109 and https://github.com/odoo/enterprise/pull/74863 Now we only use the "selection" prop of the list for documents and the code to display the confirmation message when deleting parent activities is moved in the HierarchyKanbanRenderer with the help of the deleteRecord function. task-4377706
7 changes
Resolved issues and error corrections
Call participants in Discuss are now sorted using the correct available name information. This prevents ordering issues in the call sidebar, making participant lists more reliable during conversations.
Original PR description
Before this commit, and since [1], the call participants in the side bar were sorted by `nameOrDisplayName` which is not available and should be using `name`. [1]: https://github.com/odoo/odoo/pull/174965
This fixes a visual issue in the Discuss sidebar where the last public channel icon could appear cropped. The icon sizing was adjusted so channels display cleanly, improving the user experience without changing functionality.
Original PR description
**Current behavior before PR:** In the discuss sidebar, the last public channel icon appears cropped due to insufficient width and height. **Desired behavior after PR is merged:** The issue is resolved by little adjusted height and width of the icons, this ensures the last public channel icon displays correctly without cropping. Before / after   task-4354447 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Badges now avoid showing an unintended grey background by default, making labels look cleaner and more consistent. An unsupported styling class was also replaced with a supported one to keep the interface aligned with the current design framework.
Original PR description
Before this commit: - Previously, the badge displayed a default background color of grey. After this commit: - The badge should not display a default background color. - The `text-bg-muted` class, which is not supported in Bootstrap 5, has been replaced with `text-bg-secondary`. task-4247109 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This fixes an issue in the HTML editor where selecting a single empty table cell with the mouse did not show the editing toolbar. Users can now access formatting options consistently when working with table cells, reducing friction during content editing.
Original PR description
**Before this PR:** When trying to select single empty cell using mouse, toolbar is not getting opened. The reason is that `updateToolbar` gets called from mouseup event in `toolbar_plugin` but it fails to open toolbar because `shouldBeVisible` method returns false if selection is collapsed. **Behaviour after PR:** Now toolbar gets opened when selecting single empty cell. task-4316754 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Products linked to purchase order lines can no longer be deleted while still in use. This prevents errors when users open the forecast report for purchase orders that reference those products.
Original PR description
This error occurs when a product is used in a purchase order, but the product is subsequently removed or deleted from the product list, and then an attempt is made to access it in the forecast report. Steps to reproduce: --- - Install ``purchase_stock`` module - Create a new purchase order and create a new product in the purchase order line(eg: Test) - Now go to products and delete the product(eg: Test) - Now in the purchase order line click on the ``Forecast Report`` button Traceback: --- ``ValueError: Expected singleton: product.product()`` This commit resolves the error by adding the ``ondelete`` constraint to the ``product_id`` field. This ensures that a product in use cannot be deleted. sentry-6121903860 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
The stop-timer timesheet dialog now displays the trash button at the same height as the other action buttons. This provides a cleaner, more consistent experience when users stop a running task timer.
Original PR description
Before this commit, the trash button displayed in the wizard used when the user clicks on stop button in a task (when a timer is running on that task for that current user) has not the same height than the other buttons displayed in that wizard. This commit makes sure the button has the same height than the other buttons. task-4382070
Employee departures by mutual agreement now use the departure date entered in the wizard to start the notice period, instead of automatically moving it to the next Monday. This helps Belgian payroll users calculate departure-related dates more accurately and consistently with the agreed leaving date.
Original PR description
- make the start_notice_period take the wizard departure_date instead of next monday in case of having `mutual agreement` the departure reason Task: 4373961