Daily updates from Odoo
Thursday, May 5, 2022
10 changes · master
Enhancements to existing features
This update streamlines how several accounting-related features filter accounting entries, reducing unnecessary database work. Users should see the same results, with potential performance improvements in reports, reconciliation, assets, budgets, follow-ups, consolidation, Mexican reports, and subscriptions.
Original PR description
Take advantage of already stored parent_state on account.move.line to use simpler domains and avoid adding a JOIN in ORM queries.
Resolved issues and error corrections
The Documents spreadsheet editor now shows time formats correctly while users are editing formulas or cell content. This makes spreadsheet editing clearer and helps avoid confusion when working with time-based data.
Code cleanup and technical improvements
This update reorganizes internal test code in the Documents app to prepare for a future change in how actions are triggered. It should not change day-to-day behavior, but it makes the upcoming work easier to review and safer to deliver.
Original PR description
This PR helps reducing the noise in the one introducing the new environment in the discuss app. Indeed, we won't rely on the bus anymore to listen to do actions, we will instead use the action service. The diff is awfull because the indentation has changed as well as the parameter names. Changing the indentation and the parameters now will ease the review of the main task. task-2582313 community: https://github.com/odoo/odoo/pull/90581
Miscellaneous changes
task-2824272 Forward-Port-Of: odoo/enterprise#26922
Original PR description
task-2824272 Forward-Port-Of: odoo/enterprise#26922
Add a new provider for currency exchange rates: https://www.cbe.org.eg/en/EconomicResearch/Statistics/Pages/OfficialRatesListing.aspx Task-2733489 Forward-Port-Of: odoo/enterprise#26731 Forward-Port-Of: odoo/enterprise#24547
Original PR description
Add a new provider for currency exchange rates: https://www.cbe.org.eg/en/EconomicResearch/Statistics/Pages/OfficialRatesListing.aspx Task-2733489 Forward-Port-Of: odoo/enterprise#26731 Forward-Port-Of: odoo/enterprise#24547
It's a nondeterministic problem. Sometimes in the barcode application when scanning, the virtual keyborad pop and never close itself. It happens because `setTimeout(mobile.methods.closeVirtualKeyboard, 0);` not always works (I don't know why) and the `_blurBarcodeInput` only empty the content but doesn't call blur since the keyboard should already be close due to `closeVirtualKeyboard`. The current fix, remove the override, in order to still calling blur if the `closeVirtualKeyBoard`
Original PR description
It's a nondeterministic problem. Sometimes in the barcode application when scanning, the virtual keyborad pop and never close itself. It happens because `setTimeout(mobile.methods.closeVirtualKeyboard, 0);` not always works (I don't know why) and the `_blurBarcodeInput` only empty the content but doesn't call blur since the keyboard should already be close due to `closeVirtualKeyboard`. The current fix, remove the override, in order to still calling blur if the `closeVirtualKeyBoard` failed. A better fix would be to ensure that the virtual keyboard on mobile never show opw-2612019 Forward-Port-Of: odoo/enterprise#26618
Previous to this: exempt receipts schema is validated as if it was an invoice. After this: force selection of schema validation for exempt receipts in this document type, 41 as the same used for 39 doc type Forward-Port-Of: odoo/enterprise#26412 Forward-Port-Of: odoo/enterprise#26170
Original PR description
Previous to this: exempt receipts schema is validated as if it was an invoice. After this: force selection of schema validation for exempt receipts in this document type, 41 as the same used for 39 doc type Forward-Port-Of: odoo/enterprise#26412 Forward-Port-Of: odoo/enterprise#26170
Step to reproduce: - Activate export to SDWorx - Remove the afternoon periods from the company's working hours - Export Work Entries to SDWorx Current behaviour: - Traceback - We try to access information that we are not sure is present Behaviour after PR: - No traceback - Check if information is present before formatting it opw-2828761 Forward-Port-Of: odoo/enterprise#26810
Original PR description
Step to reproduce: - Activate export to SDWorx - Remove the afternoon periods from the company's working hours - Export Work Entries to SDWorx Current behaviour: - Traceback - We try to access information that we are not sure is present Behaviour after PR: - No traceback - Check if information is present before formatting it opw-2828761 Forward-Port-Of: odoo/enterprise#26810
Purpose ======= When you upgrade Document app, you get back all data from installation, even if you deleted it. It can be confusing and create a lot of unwanted noise in your upgrade process. More over, in the context of the rolling release where you upgrade many times on the year, this can be demotivating. TaskID: 2827001 Forward-Port-Of: odoo/enterprise#26374
Original PR description
Purpose ======= When you upgrade Document app, you get back all data from installation, even if you deleted it. It can be confusing and create a lot of unwanted noise in your upgrade process. More over, in the context of the rolling release where you upgrade many times on the year, this can be demotivating. TaskID: 2827001 Forward-Port-Of: odoo/enterprise#26374
Steps to reproduce: - install timesheet_grid - go to timesheet - All timesheet - Add pivot view to dashboard - refresh - open dashboard Same issue as https://github.com/odoo/odoo/pull/88385 and https://github.com/odoo/odoo/pull/86571 Fix: add the legacy version of `timesheet_pivot_view` opw-2829450 Forward-Port-Of: odoo/enterprise#26593 Forward-Port-Of: odoo/enterprise#26431
Original PR description
Steps to reproduce: - install timesheet_grid - go to timesheet - All timesheet - Add pivot view to dashboard - refresh - open dashboard Same issue as https://github.com/odoo/odoo/pull/88385 and https://github.com/odoo/odoo/pull/86571 Fix: add the legacy version of `timesheet_pivot_view` opw-2829450 Forward-Port-Of: odoo/enterprise#26593 Forward-Port-Of: odoo/enterprise#26431