Tuesday, March 23, 2021
6 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
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
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-prResolved 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