Thursday, February 4, 2021
22 changes · master
Enhancements to existing features
Automated scheduled actions can now be triggered for several planned moments in one request, instead of requiring repeated separate calls. This makes business workflows that need per-record or multi-time scheduling simpler and more efficient, while removing an unused delay option.
Original PR description
Often the business want to trigger the cron several time at different moments. The typical use case is the business holds a recordset and needs to trigger the cron for every record. The current solution is to loop on each record to call `_trigger` times. We now allow to invoke `_trigger` with an iterable of `datetime` objects, and isolate the implementation in method `_trigger_list`. We also removed the `delay` argument as it was not used. Task: 2452697
A shorter command option was added as an alternative to the existing stop-after-startup setting. This makes a frequent developer workflow quicker and less error-prone without changing business functionality.
Original PR description
This command is often used by developers and we often need to add or remove it in a way that we can't add it in scripts. It is also kind of long to type each time. -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Resolved issues and error corrections
The planning Gantt popover no longer shows the effective hours field, matching the behavior already used in the planning form. This avoids showing unnecessary or inconsistent information to users when reviewing scheduled work.
Original PR description
Before this commit, we hid the effective_hours in the planning.slot form view but not in the popover in the gantt view. This commit removes this field displayed in this popover. task-2448441
Miscellaneous changes
- Go to Accounting > Configuration > Tax Report - Create a Tax Report (with Lines having Tag Name) - Go to Accounting > Accounting > Tax Adjustments In wizard, no Report Line can be selected for mandatory "Report Line" field. Report lines are filtered on "report_id" field, which is a related field to the report line field. Therefore there is no way to select a Report Line. opw-2449295 Description of the issue/feature this PR addresses: Current behavior before PR: Desired behav
Original PR description
- Go to Accounting > Configuration > Tax Report - Create a Tax Report (with Lines having Tag Name) - Go to Accounting > Accounting > Tax Adjustments In wizard, no Report Line can be selected for mandatory "Report Line" field. Report lines are filtered on "report_id" field, which is a related field to the report line field. Therefore there is no way to select a Report Line. opw-2449295 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#65393
Steps to reproduce the bug: 1) Enable Paypal on the Payment Acquirers and select "BE Company CoA" on the company 2) fill the email and enable the "Add Extra Fees" 3) create an invoice on the company "BE Company CoA" 4) preview it as a public user Bug: An access error was raised: Due to security restrictions, you are not allowed to access 'Companies' (res.company) records. opw:2439896 Forward-Port-Of: odoo/odoo#65460
Original PR description
Steps to reproduce the bug: 1) Enable Paypal on the Payment Acquirers and select "BE Company CoA" on the company 2) fill the email and enable the "Add Extra Fees" 3) create an invoice on the company "BE Company CoA" 4) preview it as a public user Bug: An access error was raised: Due to security restrictions, you are not allowed to access 'Companies' (res.company) records. opw:2439896 Forward-Port-Of: odoo/odoo#65460
Steps to reproduce the bug: - Accounting - Journal Entries - form view - Print - Invoices Bug: A UserError was raised 'Only invoices could be printed.' but in the attachment, the PDF was generated. opw:2452278 Forward-Port-Of: odoo/odoo#65446
Original PR description
Steps to reproduce the bug: - Accounting - Journal Entries - form view - Print - Invoices Bug: A UserError was raised 'Only invoices could be printed.' but in the attachment, the PDF was generated. opw:2452278 Forward-Port-Of: odoo/odoo#65446
When a new warehouse is created, the receipts of the purchase orders done in this new warehouse have different behavior than the ones from the inital warehouse. With the new warehouse the 'Detailed Operations' tab of the receipt is visible but not the button next to 'Done' in the 'Operations' tab. Since no elements are inside the 'Detailed Operations', it requires a manual entry of all elements for every receipt with back-order. This aligns the behavior of new warehouses with the initial one, no
Original PR description
When a new warehouse is created, the receipts of the purchase orders done in this new warehouse have different behavior than the ones from the inital warehouse. With the new warehouse the 'Detailed Operations' tab of the receipt is visible but not the button next to 'Done' in the 'Operations' tab. Since no elements are inside the 'Detailed Operations', it requires a manual entry of all elements for every receipt with back-order. This aligns the behavior of new warehouses with the initial one, not showing the 'Detailed Operations' tab in the receipts but allowing to use the button of the 'Operations' tab. -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#63086
WHY: PEC server rejects default addresses, so you cannot test connection --- opw-2371431 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#62312
Original PR description
WHY: PEC server rejects default addresses, so you cannot test connection --- opw-2371431 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#62312
Follow-up of https://github.com/odoo/odoo/pull/65357 Forward-Port-Of: odoo/odoo#65494 Forward-Port-Of: odoo/odoo#65470
Original PR description
Follow-up of https://github.com/odoo/odoo/pull/65357 Forward-Port-Of: odoo/odoo#65494 Forward-Port-Of: odoo/odoo#65470
The method `_mail_tracker` must be called after the super call on `write` It was broken by https://github.com/odoo/odoo/commit/6211871f2bced9a98788c31143626c7a18e8ed86 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#65457
Original PR description
The method `_mail_tracker` must be called after the super call on `write` It was broken by https://github.com/odoo/odoo/commit/6211871f2bced9a98788c31143626c7a18e8ed86 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#65457
Forward-Port-Of: odoo/odoo#65520 Forward-Port-Of: odoo/odoo#65263
Original PR description
Forward-Port-Of: odoo/odoo#65520 Forward-Port-Of: odoo/odoo#65263
I misremembered that `_` would go look for the translation stuff through the stack, but it only goes up to the caller of `_` itself. Since `clean_filename` has no `cr`, `cursor` or `self` that's never going to do anything, and it's thus completely useless. Forward-Port-Of: odoo/odoo#65527
Original PR description
I misremembered that `_` would go look for the translation stuff through the stack, but it only goes up to the caller of `_` itself. Since `clean_filename` has no `cr`, `cursor` or `self` that's never going to do anything, and it's thus completely useless. Forward-Port-Of: odoo/odoo#65527
Previously, when removing all the content of a snippet, that snippet would get automatically deleted. This was not the case for parallax snippets because we previously intended the user to drop the parallax snippet, empty it, and drop other content inside of it. Recently, we added the parallax option on all snippets, rendering the previous workflow obsolete. There is now no longer any reason to keep empty parallax snippets. This commit fixes that. task-2446008 Forward-Port-Of: odoo/o
Original PR description
Previously, when removing all the content of a snippet, that snippet would get automatically deleted. This was not the case for parallax snippets because we previously intended the user to drop the parallax snippet, empty it, and drop other content inside of it. Recently, we added the parallax option on all snippets, rendering the previous workflow obsolete. There is now no longer any reason to keep empty parallax snippets. This commit fixes that. task-2446008 Forward-Port-Of: odoo/odoo#64907
Before this commit, it was not possible to center a button using the editor option 'align center'. It is because, using document.execCommand(), the Chrome browser doesnt want apply 'text-align: center' on nodes with centered children. And the buttons have the boostrap class '.btn' which adds text-align: center. So the hack here is disabling the text-align property from the '.btn' class during the execution of document.execCommand(). task-2423935 -- I confirm I have signed t
Original PR description
Before this commit, it was not possible to center a button using the editor option 'align center'. It is because, using document.execCommand(), the Chrome browser doesnt want apply 'text-align: center' on nodes with centered children. And the buttons have the boostrap class '.btn' which adds text-align: center. So the hack here is disabling the text-align property from the '.btn' class during the execution of document.execCommand(). task-2423935 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#64461
Commit [1] made the 'Existing Fields' section of the view editor sidebar foldable, and folded it by default. However, a tour needed to be adapted with respect to this change. We didn't see it as this tour is currently skipped for another reason. [1] https://github.com/odoo/enterprise/commit/1a8ce7c18d6bc02daf2fdd709dc0e20b96866363 Forward-Port-Of: odoo/enterprise#16136
Original PR description
Commit [1] made the 'Existing Fields' section of the view editor sidebar foldable, and folded it by default. However, a tour needed to be adapted with respect to this change. We didn't see it as this tour is currently skipped for another reason. [1] https://github.com/odoo/enterprise/commit/1a8ce7c18d6bc02daf2fdd709dc0e20b96866363 Forward-Port-Of: odoo/enterprise#16136
Partial revert of 478da63084c638b850e365439ba6fc4b017432b0 Before this commit, there was negative value in the mod 111 tax report ('[03] Importe de las percepciones'). Now, the value is positive. opw-2209079 Forward-Port-Of: odoo/enterprise#16114 Forward-Port-Of: odoo/enterprise#16059
Original PR description
Partial revert of 478da63084c638b850e365439ba6fc4b017432b0
Before this commit, there was negative value in the mod 111 tax report
('[03] Importe de las percepciones').
Now, the value is positive.
opw-2209079
Forward-Port-Of: odoo/enterprise#16114
Forward-Port-Of: odoo/enterprise#16059Before this commit, some pdf files with faulty content would cause a crash with the pdf splitter. This commit fixes this issue. part of opw-2443289 Forward-Port-Of: odoo/enterprise#16102
Original PR description
Before this commit, some pdf files with faulty content would cause a crash with the pdf splitter. This commit fixes this issue. part of opw-2443289 Forward-Port-Of: odoo/enterprise#16102
Before this commit, some error messages were not properly displayed, this commit fixes this issue. part of opw-2443289 Forward-Port-Of: odoo/enterprise#16097
Original PR description
Before this commit, some error messages were not properly displayed, this commit fixes this issue. part of opw-2443289 Forward-Port-Of: odoo/enterprise#16097
…rizontally Before this commit, the measure was always displayed when autofilling a pivot formula. It made no sense as the measure never change when autofilling vertically. Now, the measure is only displayed when autofilling horizontally. Task-id 2348480 Forward-Port-Of: odoo/enterprise#14066
Original PR description
…rizontally Before this commit, the measure was always displayed when autofilling a pivot formula. It made no sense as the measure never change when autofilling vertically. Now, the measure is only displayed when autofilling horizontally. Task-id 2348480 Forward-Port-Of: odoo/enterprise#14066
Before this commit, it was not possible to rename a sheet in debug mode. This was due to the props validation. The title received from spreadsheet is not a string, but an object with toString (the result of _lt). This commit fixes this issue Task-id 2453146 Forward-Port-Of: odoo/enterprise#16115
Original PR description
Before this commit, it was not possible to rename a sheet in debug mode. This was due to the props validation. The title received from spreadsheet is not a string, but an object with toString (the result of _lt). This commit fixes this issue Task-id 2453146 Forward-Port-Of: odoo/enterprise#16115
PURPOSE Fix the test_rename test in studio (web_studio_tests_tour) that fails randomly in 13.0, 14.0 and master. SPEC Fix the test_rename test in studio from failing randomly. Tour web_studio_tests_tour failed at step input.o_menu_search_input as well as at step .o_home_menu TASK 2411592 Forward-Port-Of: odoo/enterprise#16079
Original PR description
PURPOSE Fix the test_rename test in studio (web_studio_tests_tour) that fails randomly in 13.0, 14.0 and master. SPEC Fix the test_rename test in studio from failing randomly. Tour web_studio_tests_tour failed at step input.o_menu_search_input as well as at step .o_home_menu TASK 2411592 Forward-Port-Of: odoo/enterprise#16079
Currently it is possible to delete a draft asset that has entries that were already posted during a locked period. This commit will change that to make sure it does not happen. Task id #2334349 Forward-Port-Of: odoo/enterprise#13012
Original PR description
Currently it is possible to delete a draft asset that has entries that were already posted during a locked period. This commit will change that to make sure it does not happen. Task id #2334349 Forward-Port-Of: odoo/enterprise#13012