Friday, September 27, 2024
89 changes
Enhancements to existing features
The web interface now lets teams define custom visual styles for fields that show remaining days. This makes it easier to highlight time-sensitive records according to each business process, such as marking items as healthy or urgent based on configured day thresholds.
Original PR description
This commit adds the ability to customize the classes of the `remaining_days` field through the `classes` option.
Usage:
```xml
<field
name="fname"
widget="remaining_days"
options="{'classes': {'success': 'days >= 10'}"
/>
```
---
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-prResolved issues and error corrections
The Discuss sidebar now makes the selected conversation easier to identify in dark mode. This reduces visual confusion in compact sidebars and improves readability for users working in Odoo Discuss.
Original PR description
The active item had black background with light grey rounding. The border looked too hard especially in a narrow space like the sidebar, and the black background was too similar with background of…
The active item had black background with light grey rounding. The border looked too hard especially in a narrow space like the sidebar, and the black background was too similar with background of channel with subthreads or in a call when compact. This commit adapt style to match `$o-action` of white theme, while adjusting color of background and border to look nice with dark theme of discuss app. Before / After <img width="300" alt="Screenshot 2024-09-26 at 18 30 11" src="https://github.com/user-attachments/assets/89ad4598-0182-44d6-9cd1-9dd29782c86a"> <img width="302" alt="Screenshot 2024-09-26 at 18 40 00" src="https://github.com/user-attachments/assets/526ad052-fab7-4e56-b6a1-88d1e8fe1a03"> Before / After <img width="59" alt="Screenshot 2024-09-26 at 18 41 14" src="https://github.com/user-attachments/assets/18688413-04b8-4f14-9966-ebed7416585d"> <img width="63" alt="Screenshot 2024-09-26 at 18 40 59" src="https://github.com/user-attachments/assets/ab6178d2-2a05-41e0-bb73-0433191f64b9">
Code cleanup and technical improvements
This update simplifies the way imported data is processed, reducing unnecessary database work. It should make imports more efficient while keeping existing behavior unchanged for users.
Original PR description
https://github.com/odoo/odoo/pull/174366 task-4027103
Miscellaneous changes
Steps to reproduce: 1) Create new attribute value (do not save) 2) Click on delete 3) Confirm deletion in the dialog Reason: When the record is new it does not have resId. But `unlink` only accepts list of type 'number' otherwise it throws an error. Forward-Port-Of: odoo/odoo#181151
Original PR description
Steps to reproduce: 1) Create new attribute value (do not save) 2) Click on delete 3) Confirm deletion in the dialog Reason: When the record is new it does not have resId. But `unlink` only accepts list of type 'number' otherwise it throws an error. Forward-Port-Of: odoo/odoo#181151
The quote builder now restores the document preview in sales quotations and improves how the PDF placeholder appears. This helps sales users verify attached quote documents more reliably before sending them to customers.
Original PR description
`o_kanban_previewer` was wrongly removed in dbe94039de1be49f33505445d1e27543c3137d4f. This commit brings it back and improves the display of the pdf placeholder.
Combo products no longer show the invoicing policy field in Sales and Point of Sale product forms. This avoids displaying a setting that does not apply to combo products, reducing confusion during product setup.
Original PR description
Issue: - The invoicing policy field is displayed for all product types, including combo products. Fix: - Hide invoicing policy field for products of type 'combo'. --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This fixes searches by display name for records in affected areas where that search option had stopped working. Users can again find the right aliases, project tasks, and recruitment department pages using familiar names.
Original PR description
Since https://github.com/odoo/odoo/pull/181529, we cannot search on display name for some models that define themselves the field without specifying the search method. The `display_name` field is defined (including its compute method) only when the model does not define it yet. Existing declarations were missing a `search` declaration. odoo/enterprise#70746 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Fixes layout and visibility issues in the website text cover snippet so it behaves more consistently across screen sizes. This helps website editors create pages that resize smoothly and display correctly on mobile devices.
Original PR description
This commit fixes the `s_text_cover` snippet template to: - remove the padding `pt pb` classes, as they are useless in grid mode, - fix the `g-height-*` classes, as they were not matching the number of rows and it is needed to resize smoothly, - fix a `col-lg-*` class as it needs to match with the grid one, - fix the mobile visibility classes: the mobile breakpoint is at `LG` and it was missing the `o_snippet_mobile_invisible` class. task-3665300
The Project app now shows the correct wording for the stat button that lists tasks blocking the current task. This avoids confusion by changing the label from "Blocking Tasks" to "Blocked Tasks" so users better understand the task relationship.
Original PR description
Before: The 'blocked by' stat button in the Project module incorrectly displays as 'Blocking Tasks'. After: The text of the 'blocked by' stat button has been updated from 'Blocking Tasks' to 'Blocked Tasks' in the Project module. task-4119271
The editor now shows the placeholder hint inside empty quote blocks with the same padding as typed text. This makes the editing experience look cleaner and reduces confusion about where text will appear.
Original PR description
This commit adds the styling rules for the blockquote (present in the web_editor module), and fixes the padding for the hint that is displayed when the blockquote is empty. Before this commit, the hint would be displayed on the top left corner of the blockquote without any padding, which, other than looking bad, does not match the position in which the text is inserted after typing. task-4207507
Product images in field service sales now appear at a more appropriate size, and placeholder images are shown when no product image is available. This makes product views cleaner and more consistent for users.
Original PR description
Currently, the product image is displayed in a large size, and the empty image is not shown. Both issues have been fixed in this commit. task-4188603
Users can now create a new spreadsheet from Documents while debug mode is enabled without running into an error. This fixes a crash caused by certain folder selections, improving reliability for users and administrators working in debug mode.
Original PR description
Steps to reproduce: - enable debug mode - go to Documents - select My Drive - click on New > Spreadsheet => boom `OwlError: Invalid props for component 'TemplateDialog': 'folderId' is not a number` The props can also be a string like `"MY"`, `"COMPANY"` or `"TRASH"`
This update prevents copied databases from unintentionally connecting to Urban Piper external services. It helps support teams investigate issues safely without affecting live operations or customers.
Original PR description
This commit adds the missing neutralization necessary for the pos_urban_piper module introduced in [1] The purpose of the standard neutralization framework is to allow us to create database copies that will not interact with external systems in ways that could impact the production database (or if it is not possible to prevent the interactions, make sure that they are benign or won't result in actual changes), or impact the customers of the operator of the production database. This is mainly useful to allow safe support investigation on database duplicates. [1] https://github.com/odoo/enterprise/pull/66733
This fix restores the ability to search records by their displayed name in several business areas where it had stopped working. Users can again find relevant records more easily in accounting synchronization, payroll, sales subscriptions, commissions, and signing workflows.
Original PR description
Since https://github.com/odoo/odoo/pull/181529, we cannot search on display name for some models that define themselves the field without specifying the search method. The `display_name` field is defined (including its compute method) only when the model does not define it yet. Existing declarations were missing a `search` declaration. odoo/odoo#181563
This fix removes an extra message panel that was appearing in manufacturing maintenance screens. Users will now see a single chatter area, reducing visual clutter and avoiding duplicate communication sections.
Original PR description
The chatter was added in the main view via odoo/odoo#175329 so we need to remove this one otherwise we'll see 2 chatters.
Before this commit, the "tour pointers" that indicated to users that they needed to scroll the "snippets modal" were misaligned. Their position did not account for the iframe offset of the modal. task-4072655 Forward-Port-Of: odoo/odoo#181146
Original PR description
Before this commit, the "tour pointers" that indicated to users that they needed to scroll the "snippets modal" were misaligned. Their position did not account for the iframe offset of the modal. task-4072655 Forward-Port-Of: odoo/odoo#181146
In the context of the industries we want to create custome js tours. The role of these tours is to explain some flows to the user in a more intuitive version than text. Currently those tours are counted in the mainenance line of code. This comportment is not intended. After this commit, we will look at the cloc_excluded argument in the manifest and exclude those from the maintenance line of code. task-4056239 Description of the issue/feature this PR addresses: Current behavior before
Original PR description
In the context of the industries we want to create custome js tours. The role of these tours is to explain some flows to the user in a more intuitive version than text. Currently those tours are counted in the mainenance line of code. This comportment is not intended. After this commit, we will look at the cloc_excluded argument in the manifest and exclude those from the maintenance line of code. task-4056239 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 Forward-Port-Of: odoo/odoo#178190
Steps to reproduce: - Create 2 websites and give them a different domain - Go to any product page (shared between all websites) - Check the source code with https://validator.schema.org/: the URL and image microdata start with the wrong domain. => Case 1: if no company_id was set on the product, the URL returns `web.base.url`. => Case 2: if a company_id is set and that company has a website_id set, both websites return the company's website domain. This commit makes sure to return the cu
Original PR description
Steps to reproduce: - Create 2 websites and give them a different domain - Go to any product page (shared between all websites) - Check the source code with https://validator.schema.org/: the URL and image microdata start with the wrong domain. => Case 1: if no company_id was set on the product, the URL returns `web.base.url`. => Case 2: if a company_id is set and that company has a website_id set, both websites return the company's website domain. This commit makes sure to return the current website domain. opw-4113559 Forward-Port-Of: odoo/odoo#179455
In the Inventory Adjustments view, it is currently possible to select any user for a count request or assign any user to a specific stock.quant, even portal users. This fix ensures only stock users are selected. task 4207784 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#181376
Original PR description
In the Inventory Adjustments view, it is currently possible to select any user for a count request or assign any user to a specific stock.quant, even portal users. This fix ensures only stock users are selected. task 4207784 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#181376
Steps to reproduce: -go to shop -choose product which has multi option attribute -tick atleast one attribute -add to cart Issue: -multi option values are not visible in cart description in mobile view. Cause: -the issue caused due to use of d-none and d-md-block classes, due to this it will not show in small size devices. Fix: -replace d-none and d-md-block with empty string, so now the values will show for all devices. opw-3853263 --- I confirm I have signed the CLA a
Original PR description
Steps to reproduce: -go to shop -choose product which has multi option attribute -tick atleast one attribute -add to cart Issue: -multi option values are not visible in cart description in mobile view. Cause: -the issue caused due to use of d-none and d-md-block classes, due to this it will not show in small size devices. Fix: -replace d-none and d-md-block with empty string, so now the values will show for all devices. opw-3853263 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#178308
Finetuning of #176391, when ecommerce access was disabled to public users, the admin were unable to reference /shop urls even in restricted parts of the website if needed, because autocomplete didn't suggest those links anymore. Forward-Port-Of: odoo/odoo#181680
Original PR description
Finetuning of #176391, when ecommerce access was disabled to public users, the admin were unable to reference /shop urls even in restricted parts of the website if needed, because autocomplete didn't suggest those links anymore. Forward-Port-Of: odoo/odoo#181680
readonly was added to product template in commit 0d75323600a14dd8964b0b3d29d69aa0fde3ee45 When it should've just been on product.product, so users were no longer able to set as favorite from form view. --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#181531
Original PR description
readonly was added to product template in commit 0d75323600a14dd8964b0b3d29d69aa0fde3ee45 When it should've just been on product.product, so users were no longer able to set as favorite from form view. --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#181531
Before this commit, if there was an issue with printing via an ePoS printer, the system did not allow for printing the receipt through the web as a fallback. This was due to the erroneous passing of the error object instead of the receipt content. opw-4209073 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#181595
Original PR description
Before this commit, if there was an issue with printing via an ePoS printer, the system did not allow for printing the receipt through the web as a fallback. This was due to the erroneous passing of the error object instead of the receipt content. opw-4209073 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#181595
The Accounting and Benchmark dashboards were designed with a global filter working with months. But when filtering by quarter, everything breaks because formulas do not expect an input such as "Q4/2020". This commit disable the possibility to select quarters. Task: 4184088 Forward-Port-Of: odoo/enterprise#69991
Original PR description
The Accounting and Benchmark dashboards were designed with a global filter working with months. But when filtering by quarter, everything breaks because formulas do not expect an input such as "Q4/2020". This commit disable the possibility to select quarters. Task: 4184088 Forward-Port-Of: odoo/enterprise#69991
Fix staff user cards alignment when there is only 1 user and the appointment is unpublished. The card must be aligned with the "Unpublished" text. Task-4196414 Forward-Port-Of: odoo/enterprise#70492 Forward-Port-Of: odoo/enterprise#70309
Original PR description
Fix staff user cards alignment when there is only 1 user and the appointment is unpublished. The card must be aligned with the "Unpublished" text. Task-4196414 Forward-Port-Of: odoo/enterprise#70492 Forward-Port-Of: odoo/enterprise#70309