Tuesday, March 23, 2021
27 changes · master
Enhancements to existing features
Website editors can now more easily show or hide content snippets on mobile devices using a clearer top-level control with mobile visibility icons. This makes responsive page editing faster and reduces the chance of publishing content that displays incorrectly on phones.
Original PR description
[IMP] website: improve the UI of the mobile visibility option Adding the option to show/hide on mobile in snippet level. Using the fa-mobile icon. Color green if visible on mobile, grey, else. task-2431659
This update modernizes how Odoo's messaging tools manage internal data changes, replacing older command formats with a clearer and more consistent approach. It mainly affects mail-related features such as conversations, attachments, followers, activities, live chat, HR employee data, and time off discussions, helping reduce future maintenance risk without changing day-to-day user workflows.
Original PR description
task-id: 2453408
Warehouse users can more easily validate large receipts and deliveries when only a few product quantities differ from the planned amounts. The change reduces manual line-by-line updates and also applies to batch pickings, saving time during stock operations.
Original PR description
When you want to validate a picking with a lot of products, the system notifies "You have not recorded done quantities yet, by clicking on apply Odoo will process all the quantities." Nice and easy, except when you were not able to process all the quantities. In that case you have to update all but the few lines manually. task-2158092 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
Users can now select existing mailing contacts and add them in bulk to another mailing list, either an existing one or a new one created on the spot. This reduces manual copy-pasting and makes it easier to reuse contact groups for future email campaigns.
Original PR description
create a button that allows users to add selected mailing list contacts to a mailing list, the purpose is to allow users to handle their mailing contacts by: - letting them create populated mailing lists on the fly - letting them add contacts to existing lists Task-2453990 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Invoice journal items now use a mobile-friendly card layout on small devices while keeping the standard table view on desktop. This makes invoice details easier to read and review on phones and tablets.
Original PR description
Before, journal items tab on invoice display in tree view, that decrease the redability in small devices. After this commit, journal items are displayed in a kanban view for small devices and tree view for desktop. Task ID: 2157725
Product package length, width, and height measurements now use millimetres when the product length configuration is not set to feet. This gives businesses more accurate and consistent package dimension units instead of defaulting to metres.
Original PR description
Changed the uom of product package if product_length_in_feet_param of ir config parameter for product is not 1. Previously its value was meter. For following fields updated the uom - 1) packaging_length 2) width 3) height TaskId: 2418421 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
This update makes Odoo read XML and HTML content more efficiently when preparing translated views. It reduces loading time for cached views, especially larger website pages, improving responsiveness during cache refreshes and similar operations.
Original PR description
The old algorythm was recreating a full etree from scratch, while parsing the content to translate. Now, we just parse the etree and update only the content that to be translated.
Before:
| In [2]: %timeit views.refresh(); views.mapped('arch_db')
| 504 ms ± 18 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)
After:
| In [2]: %timeit views.refresh(); views.mapped('arch_db')
| 191 ms ± 2.38 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)
Reading a view is 2.63x faster: from 504 ms, to 191 ms (sum of all the 1345 views, when installing website_sale). Large views, like web pages goes up to 3x-4x faster; small views are ~2x faster.
As views are cached, it only impacts the loading to put in cache, but all XML/HTML fields get the same performance gain.
--
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-prWebsite editor range controls now respond as soon as their value changes, making editing interactions feel more immediate and accurate. This improves the experience for users adjusting slider-based settings in the editor.
Original PR description
The purpose of this commit is to add an event listener triggered on current value change of the input range type. task-2362091
Package size data for DHL and UPS shipping has been updated to use millimeters instead of meters. This improves consistency and helps ensure shipping package dimensions are recorded in the expected unit of measure.
Original PR description
In this task, changed the uom of height, length and width of product package from m to mm. As updating values according to mm uom. TaskId: 2418421
This update modernizes internal data handling in the Approvals and VoIP areas. It should help keep these features easier to maintain without changing the day-to-day user experience.
Original PR description
task-id: 2453408
Resolved issues and error corrections
Survey certification PDFs now use the available A4 page space correctly, avoiding overly large top and side margins. This improves the appearance and professionalism of printed certificates for users and recipients.
Original PR description
Generated PDF was shrunk down, not taking up the full width and size of the A4 format, leaving big margins on right and top. Setting `disable-smart-shrinking` to `True` helps with this, but layout is slightly too big. Setting `dpi` to `96` and removing the `width` and `height` on the parent element fully fixes the issue. This merge also adds a boolean field `disable_shrinking` in model `report.paperformat`. If set to True it adds one argument `--disable-smart-shrinking` in commands that prevents the pdf shrinking. See issue[1] for more information. This options is utilized for printing survey certificaiton. Task ID-2483393 COM PR odoo/odoo#68188 UPGPR odoo/upgrade#2293 issue[1] - wkhtmltopdf/wkhtmltopdf#3226
Miscellaneous changes
TLS 1 and 1.1 are not recommended anymore This configuration was generated with [Mozilla SSL Configuration Generator](https://ssl-config.mozilla.org/#server=nginx&version=1.10.3&config=intermediate&openssl=1.1.0l&guideline=5.6) with a fairly conservative approach: - nginx 1.10.3, OpenSSL 1.1.0l (Debian Stretch) - Supports Firefox 27, Android 4.4.2, Chrome 31, Edge, IE 11 on Windows 7, Java 8u31, OpenSSL 1.0.1, Opera 20, and Safari 9 Fixes odoo/odoo#68002 Could add TLSv1.3 with NGINX 1.1
Original PR description
TLS 1 and 1.1 are not recommended anymore This configuration was generated with [Mozilla SSL Configuration Generator](https://ssl-config.mozilla.org/#server=nginx&version=1.10.3&config=intermediate&openssl=1.1.0l&guideline=5.6) with a fairly conservative approach: - nginx 1.10.3, OpenSSL 1.1.0l (Debian Stretch) - Supports Firefox 27, Android 4.4.2, Chrome 31, Edge, IE 11 on Windows 7, Java 8u31, OpenSSL 1.0.1, Opera 20, and Safari 9 Fixes odoo/odoo#68002 Could add TLSv1.3 with NGINX 1.14 openssl 1.1 (included in stretch-backports/buster), maybe for 14.0 Forward-Port-Of: odoo/odoo#68207
This fix allows Odoo's JavaScript processing to handle more legacy import names that were previously rejected. It helps older custom or core code continue working when used from newer module files, reducing upgrade and compatibility issues.
Original PR description
In a @odoo-module js file, importing a legacy file that did not have
a key respecting the "module.name" format was not supported.
This commit will support all keys that do not start with a "." or "@".
Supported:
import X from "some/path"
import X from "module.name"
Not supported:
import X from "@some/path"
import X from "./some/path"
import X from "../../some/path"
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-prThis fix updates the website logo file so browsers can reliably recognize it as an SVG image. It prevents cases where the logo may fail to render when certain server file-detection tools are installed.
Original PR description
Without this 'XML declaration', if you have magic installed, the mime type is image/svg instead of image/svg+xml and browser don't render it. This commit is related to #68211 meanwhile a more generic solution (if needed). 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
This update corrects how Odoo handles file paths that include the standard addons prefix. It helps ensure internal file lookups work consistently and reduces the risk of path-related errors in system operations.
Original PR description
The tests passed because the path with the prefix is valid at root_path.
A canceled event track must be unpublished. opw:2485928 Forward-Port-Of: odoo/odoo#68032
Original PR description
A canceled event track must be unpublished. opw:2485928 Forward-Port-Of: odoo/odoo#68032
This reverts commit ed17f560fa06e2d1c9e7495c9a4cbfe1cea5bce6 which introduced a check not needed anymore as the field measure_type does not exist any more since: https://github.com/odoo/odoo/commit/52ed0be17e80aa6bcc24d59620dd3462b6d577c3 opw-2482554 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: o
Original PR description
This reverts commit ed17f560fa06e2d1c9e7495c9a4cbfe1cea5bce6 which introduced a check not needed anymore as the field measure_type does not exist any more since: https://github.com/odoo/odoo/commit/52ed0be17e80aa6bcc24d59620dd3462b6d577c3 opw-2482554 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#68054
Open Calendar weekly view Scroll the weeks The 'Responsible' filter will accumulate entries from the events and not deleting them. This create issue with the view in db with heavy calendar use and a lot of responsibles This reverts commit 64d0fe411840fb43c96f0252a7ff5e74bd7cdc90, coming from task 2146842, addressing the following issue in calendar view (i.e. in planning app) not reproducible anymore " In calendar view, when you unselect all filters of a category, all events disapp
Original PR description
Open Calendar weekly view Scroll the weeks The 'Responsible' filter will accumulate entries from the events and not deleting them. This create issue with the view in db with heavy calendar use and a lot of responsibles This reverts commit 64d0fe411840fb43c96f0252a7ff5e74bd7cdc90, coming from task 2146842, addressing the following issue in calendar view (i.e. in planning app) not reproducible anymore " In calendar view, when you unselect all filters of a category, all events disappear (it's expected), but all filters also disappear. So you can't selectd anything, you must reload the view to unlock the situation. " opw-2479920 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#67710
Problem : In the website settings, there are related fields with a default value. The ORM will therefore only take the default value and ignore the value of "related". Solution : Remove default value from related fields opw-2467959 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#67774
Original PR description
Problem : In the website settings, there are related fields with a default value. The ORM will therefore only take the default value and ignore the value of "related". Solution : Remove default value from related fields opw-2467959 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#67774
**Before this commit:** If there is no subject for message, it effectively displays "False" in case of void subject. **After this commit:** If there is no subject for message, it will not display "False" in case of void subject. Tasks-2156170 Forward-Port-Of: odoo/odoo#68232
Original PR description
**Before this commit:** If there is no subject for message, it effectively displays "False" in case of void subject. **After this commit:** If there is no subject for message, it will not display "False" in case of void subject. Tasks-2156170 Forward-Port-Of: odoo/odoo#68232
It should be possible to modify payment transaction submit form details when such modification is required as per payment provider API specification. Currently, such extension is not possible and with this PR we want to solve that issue. -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#68133 Forward-Port-Of: odoo/odoo#66645
Original PR description
It should be possible to modify payment transaction submit form details when such modification is required as per payment provider API specification. Currently, such extension is not possible and with this PR we want to solve that issue. -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#68133 Forward-Port-Of: odoo/odoo#66645
When importing transtlation from CSV, we: - cut at `:` character to get the model - used a model for types other than model and model_terms This caused error that do not happen in PO import because: - the model is before the `,` character - the imd_model column is constrained to 64 characters, and a name that is not a model could be over that size. With this changeset, the CSV import match better current PO import. opw-2439029 Forward-Port-Of: odoo/odoo#68252
Original PR description
When importing transtlation from CSV, we: - cut at `:` character to get the model - used a model for types other than model and model_terms This caused error that do not happen in PO import because: - the model is before the `,` character - the imd_model column is constrained to 64 characters, and a name that is not a model could be over that size. With this changeset, the CSV import match better current PO import. opw-2439029 Forward-Port-Of: odoo/odoo#68252
Forward-Port-Of: odoo/enterprise#17208
Original PR description
Forward-Port-Of: odoo/enterprise#17208
1) Create an automated action for sale.order.line 2) Set the 'Trigger' field to On Update and 'Action To Do' to Execute Python Code 3) Just put 'pass' on the python code 4) Go to rental and create an SO and add a product that Can be Rented on the SOL and click add Traceback will occur as a CacheMiss is detected after the compute method is called opw-2480787 Forward-Port-Of: odoo/enterprise#17065
Original PR description
1) Create an automated action for sale.order.line 2) Set the 'Trigger' field to On Update and 'Action To Do' to Execute Python Code 3) Just put 'pass' on the python code 4) Go to rental and create an SO and add a product that Can be Rented on the SOL and click add Traceback will occur as a CacheMiss is detected after the compute method is called opw-2480787 Forward-Port-Of: odoo/enterprise#17065
Since 3c7f6bde6753da15fd13007ed73ddd727fad0f8b, on the barcode line, the product code is displayed on top of the product name. But if a product is added by scanning a product non-present yet, the added line has the product display name in one line, instead of having its code and product name on different line. Forward-Port-Of: odoo/enterprise#17248
Original PR description
Since 3c7f6bde6753da15fd13007ed73ddd727fad0f8b, on the barcode line, the product code is displayed on top of the product name. But if a product is added by scanning a product non-present yet, the added line has the product display name in one line, instead of having its code and product name on different line. Forward-Port-Of: odoo/enterprise#17248
Forward-Port-Of: odoo/enterprise#17232 Forward-Port-Of: odoo/enterprise#16899
Original PR description
Forward-Port-Of: odoo/enterprise#17232 Forward-Port-Of: odoo/enterprise#16899
Steps to reproduce the bug: When ordering mr.eco.type with sequence, the order was not kept opw:2484873 Forward-Port-Of: odoo/enterprise#17184
Original PR description
Steps to reproduce the bug: When ordering mr.eco.type with sequence, the order was not kept opw:2484873 Forward-Port-Of: odoo/enterprise#17184