Friday, February 11, 2022
6 changes · master
Resolved issues and error corrections
This update fixes focus handling in Point of Sale screens after an internal change and simplifies how Odoo automatically places the cursor in key input fields. Users should see more reliable typing flow in search, ticket, pager, date picker, and favorite menu areas without any change to business processes.
This fixes an export error that could occur when users chose the import-compatible export option and selected only the External ID field. The export now completes as expected, preventing a disruptive traceback during report data exports.
Original PR description
Problem occurs when we try to export report data and click 'I want to update data (import-compatible export)'. We might end up exporting data when only field to export is - External ID (id). To reproduce an issue (for example): Go to Time Off/Reporting/by Type; Remove filters from search. Select couple records, then Action/Export. On the wizard, click on 'I want to update data (import-compatible export)'. Click on External ID from 'Available fields' to add it to 'Fields to export'. Click export. It gives traceback - File "/data/build/odoo/addons/web/controllers/main.py", line 710, in write_header self.worksheet.set_column(0, i, 30) # around 220 pixels UnboundLocalError: local variable 'i' referenced before assignment task - 2687370
Images now use default lazy loading only on website pages, not in email marketing content. This prevents email snippets such as cover images from appearing with zero height during editing, making campaign creation more reliable.
Original PR description
The `loading="lazy"` attribute was set by default on all images but this affected the `mass_mailing` module as well while that attribute doesn't work in emails and can cause some issues in edition. One known such issue this addresses is to be reproduced as follows: 1. Create a new mail 2. Drop the "cover" snippet It has height 0 so it won't load until another snippet (with a non-zero height) is dropped. task-2761074 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This fixes a visual issue where the chatter area could briefly disappear and reappear when users changed form modes or navigated records. The chatter now stays stable during form updates, making the interface feel smoother and less distracting.
Original PR description
Before this commit, when a form view was re-rendered (e.g. when switching to "edit" or "readonly" modes, when using the pager...), the chatter briefly disappeared and then reappeared, which produced…
Before this commit, when a form view was re-rendered (e.g. when switching to "edit" or "readonly" modes, when using the pager...), the chatter briefly disappeared and then reappeared, which produced a flickering. This has been introduced by the adaptation of the JS codebase to owl 2 [1]: when the form view had to be re-rendered, we reused the DOM element containing the chatter in the new rendering (done in memory), which was thus detached from the DOM. That element was re-inserted into the DOM later on, alongside the rest of the newly rendered elements. This commit fixes the issue by using a specific "hook" element when rendering the form view, and replacing that hook by the actual (unchanged) chatter container element when the rendering is done and the DOM is patched. [1] edd79ff560cf321ebd0488e4917abb7424fea1bb 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
The spreadsheet component was updated to a newer version with fixes for editing edge cases, including merged cells and deleted sheets. This improves reliability for users working with spreadsheets in Documents, while most other changes are internal cleanup and test improvements.
Original PR description
…rsion This commit includes the following changes: [IMP] package: Add demo/*.js files to prettier flow [FIX] edition: check merge cell in the correct sheet [FIX] edition: cancel edition if sheet is deleted [FIX] evaluation: get rid of makeObjectIterator [FIX] demo: fix function makeLargeDataset [REF] env: model is now accessible through the env [REM] components: remove static style declaration [REF] tests: simplify dispatch spyOn [REF] grid: remove model as props [IMP] tests: activate owl dev mode [REF] tests: remove call to __owl__.destroy [REF] spreadsheet: give model as props [REF] model: remove unecessary argument to joinSession [REF] tests: remove Parent component
The Sign document viewer was updated to use the correct icon font file after a platform change moved its location. This prevents signed PDF pages from failing to load properly, helping users continue reviewing and signing documents without interruption.
Original PR description
change the reference of font-awesome.css in the sign.assets_pdf_iframe before this task the location of font-awesome.css is changed in owl2 the sign.assets_pdf_iframe would not be loaded successfully