Daily updates from Odoo
Navigate
Branch
Thursday, April 21, 2022
15 changes
Enhancements to existing features
Regular approval users will no longer see or access product records from the main Approvals area. Product management is now kept under configuration, helping keep day-to-day approval screens focused and reducing accidental access to setup data.
Original PR description
The users are not supposed to access the various products in approvals. This commit removes this access and places the products in the configuration menu. TaskID 2811586
The Documents spreadsheet integration has been updated to the latest spreadsheet engine version. This improves the underlying reliability and maintainability of spreadsheet rendering and interactions, with no major user-facing workflow changes expected.
Original PR description
### Contains the following commits: https://github.com/odoo/o-spreadsheet/commit/a71c5d85 [IMP] *: convert all position arrays to type Position https://github.com/odoo/o-spreadsheet/commit/8b180cfe [REM] commands: Selection related commands are not used anymore https://github.com/odoo/o-spreadsheet/commit/c71bdca6 [REF] overlay: rename overlay to headers overlay https://github.com/odoo/o-spreadsheet/commit/86db8e6d [REF] renderer: remove headers sizes dependencies https://github.com/odoo/o-spreadsheet/commit/ad69d247 [REF] grid: introduce grid overlay
This update tidies the internal naming used by the signing request screen. It helps keep the Sign app easier to maintain without changing how users complete or manage signature requests.
Original PR description
Task-2828981
VoIP call and activity handling logic has been reorganized behind the scenes to make it easier to maintain and update. This should make future VoIP improvements more reliable without changing how users work today.
Original PR description
This commit moves some handler methods from components to models, as a step closer to having most of business code in models. Having business code in models is desirable so that the code is much more maintainable: easier to change and more robust code. Task-2579306 Community: https://github.com/odoo/odoo/pull/89123
This update removes an unnecessary parameter from the mail channel folding behavior. It keeps the messaging experience cleaner internally without changing how business users interact with channels.
Original PR description
Unnecessary param. task-2827807
Code cleanup and technical improvements
This update simplifies behind-the-scenes styling labels in several Odoo screens, including approvals, messaging swipe views, and signing requests. It helps keep the interface code easier to maintain without changing day-to-day business workflows.
Original PR description
Task-2829825
Miscellaneous changes
Before this PR, when the user is an administrator of Field Service app, he can only see task in which he is assigned or the ones in which he is follower of the project or those tasks. This behavior is expected only when the user is only a basic user of this app. Moreover, the Task Analysis report was very slowly because of the planning overlap computed directly in the SQL view, this compute is too costly each time we do a query in this report. This PR adds a rule for the administrato
Original PR description
Before this PR, when the user is an administrator of Field Service app, he can only see task in which he is assigned or the ones in which he is follower of the project or those tasks. This behavior is expected only when the user is only a basic user of this app. Moreover, the Task Analysis report was very slowly because of the planning overlap computed directly in the SQL view, this compute is too costly each time we do a query in this report. This PR adds a rule for the administrator of Field Service app to avoid filtering the records when the user is an administrator of that app. Also, it removes the compute in the SQL query and made it only when we need the result of this field. It means the field will be a compute field non stored with a search method. Forward-Port-Of: odoo/enterprise#26434
## Aim of this PR: Correct 2 bugs different bug occuring in 281.50 in 14.0 and 15.0 - Bug in the query of paid amount which prevents retrieving the paid amount for a parent partner - Bug when generating all pdf for all partner: the file name is the safe for all partner and thus only one is zipped. ## 1) [FIX] l10n_be_reports: paid amount is for parent The aim of this query is to correct the result given by the function `_get_paid_amount_per_partner`. #### context: During the impr
Original PR description
## Aim of this PR: Correct 2 bugs different bug occuring in 281.50 in 14.0 and 15.0 - Bug in the query of paid amount which prevents retrieving the paid amount for a parent partner - Bug when…
## Aim of this PR: Correct 2 bugs different bug occuring in 281.50 in 14.0 and 15.0 - Bug in the query of paid amount which prevents retrieving the paid amount for a parent partner - Bug when generating all pdf for all partner: the file name is the safe for all partner and thus only one is zipped. ## 1) [FIX] l10n_be_reports: paid amount is for parent The aim of this query is to correct the result given by the function `_get_paid_amount_per_partner`. #### context: During the improvement done in https://github.com/odoo/enterprise/pull/26001 We encountered a bug we solved. Thus, this is a backport of the corrected query. #### Bug predicate: - Given partner A, a company tagged with 281.50 - Given partner B an individual subpartner of partner A (child) tagged with 281.50 - Given an expense account tag with the commission tag - Given a bill to partner B on which we registered a payment #### Before this commit: Creating the PDF or the xml will result in commission for partner A and paid amount of 0 for partner A. Partner B doesn't get a form. #### After this commit: Partner B doesn't get a form. Partner A get a form with commission and paid amount. ## 2) [FIX] l10n_be_reports: 281.50 pdf name in zip file The aim of this commit is to ensure that pdf file are saved correctly in the zip file. #### Context: Generating all 281.50 pdf files #### Before this commit: The pdf files all get the same name and thus erase the content in the zip resulting in all the file in the zip being one single file. #### After this commit: Pdf file name generated are different and doesn't erase the content. task: 2813104 Forward-Port-Of: odoo/enterprise#26421 Forward-Port-Of: odoo/enterprise#26064
The Balance 8 Columnas didn't take the Unallocated Earnings from previous years into consideration, making the totals line unbalanced and incorrect.  As the income/loss was realized in previous years, it is considered as a reduction of the income/loss that appears to be from this year. Ref: https://www.economia.ws/balance-de-8-columnas.php Task link: https://www.odoo.com/web
Original PR description
The Balance 8 Columnas didn't take the Unallocated Earnings from previous years into consideration, making the totals line unbalanced and incorrect.  As the income/loss was realized in previous years, it is considered as a reduction of the income/loss that appears to be from this year. Ref: https://www.economia.ws/balance-de-8-columnas.php Task link: https://www.odoo.com/web#id=2732449&model=project.task <details> <summary>Click to see the balance checks for the <b>Total</b> row</summary> <img src="https://user-images.githubusercontent.com/1665365/152149718-6d1115f8-ac3c-4844-85b5-e4370fbdb61c.png"/><br> <img src="https://user-images.githubusercontent.com/1665365/152149741-b5b43b46-b310-42bb-be6d-5489898280cf.png"/> </details> Forward-Port-Of: odoo/enterprise#26426 Forward-Port-Of: odoo/enterprise#23931
Bug === If the user doesn't have access to helpdesk, the menu was visible on the addin side. Now, the section is not visible if the user doesn't have access to. Task-2765323 Forward-Port-Of: odoo/enterprise#26419 Forward-Port-Of: odoo/enterprise#24476
Original PR description
Bug === If the user doesn't have access to helpdesk, the menu was visible on the addin side. Now, the section is not visible if the user doesn't have access to. Task-2765323 Forward-Port-Of: odoo/enterprise#26419 Forward-Port-Of: odoo/enterprise#24476
Field component_id on quality.point should be set only when test_type is 'register_consumed_materials' or 'register_byproducts'. task: 2821392 Forward-Port-Of: odoo/enterprise#26330 Forward-Port-Of: odoo/enterprise#26100
Original PR description
Field component_id on quality.point should be set only when test_type is 'register_consumed_materials' or 'register_byproducts'. task: 2821392 Forward-Port-Of: odoo/enterprise#26330 Forward-Port-Of: odoo/enterprise#26100
before this PR, in helpdesk rating search view 'Last 30 days' filter declare twice. So, in this PR remove one extra filter from rating search view. task-2758779 Forward-Port-Of: odoo/enterprise#24819
Original PR description
before this PR, in helpdesk rating search view 'Last 30 days' filter declare twice. So, in this PR remove one extra filter from rating search view. task-2758779 Forward-Port-Of: odoo/enterprise#24819
It's confusing that taxes that are fully (or partially) exempt still show on the invoice line as normal. There's no way for the customer to tell the difference between a (partially) exempt tax and a regular one. Take the following invoice as an example (tax is excluded from price in general settings): ``` |---------+--------------------------+----------| | Product | Tax | Subtotal | |---------+--------------------------+----------| | A | DC STATE TAX [11] (5
Original PR description
It's confusing that taxes that are fully (or partially) exempt still show on the invoice line as normal. There's no way for the customer to tell the difference between a (partially) exempt tax and a…
It's confusing that taxes that are fully (or partially) exempt still show on the invoice line as normal. There's no way for the customer to tell the difference between a (partially) exempt tax and a regular one. Take the following invoice as an example (tax is excluded from price in general settings): ``` |---------+--------------------------+----------| | Product | Tax | Subtotal | |---------+--------------------------+----------| | A | DC STATE TAX [11] (5.0%) | $ 100.00 | |---------+--------------------------+----------| | | Untaxed amount: | $ 100.00 | | | Taxes: | $ 2.50 | | | Total: | $ 102.50 | |---------+--------------------------+----------| ``` When lines are (partially) exempt the Avatax API returns the normal tax and it's normal rate but returns a different tax amount. In this case the normal tax would be $5.00 but because of a partial exemption the actual tax is $2.50. To avoid confusion this commit hides the tax names. Curious users can still click on the line to see the tax names in the popup form view. This issue does not appear on reports because in both the sale.order and account.move report the taxes are grouped under the tax group name. This is similar to what was done for Taxcloud with 956e2e5cc8c088f70df2109035a55287d9a8e864, although the reasoning for that was different. opw-2825425 Forward-Port-Of: odoo/enterprise#26302
Steps : Create a Subscription S to renew for Portal : > To Renew : True Set a Customer Tax on the Product of your Subscription Line. Payment Acquirers > Activate Stripe : > Payment Flow : Payment from Odoo Log in with Portal, go to S and try to pay it. Issue : Error 403 Cause : Upon Subscription.send_succes_mail(), we want to render the template 'account.report_invoice_document'. This templates tries to access AccountMove.amount_by_group with portal user, which triggers _compute
Original PR description
Steps : Create a Subscription S to renew for Portal : > To Renew : True Set a Customer Tax on the Product of your Subscription Line. Payment Acquirers > Activate Stripe : > Payment Flow : Payment from Odoo Log in with Portal, go to S and try to pay it. Issue : Error 403 Cause : Upon Subscription.send_succes_mail(), we want to render the template 'account.report_invoice_document'. This templates tries to access AccountMove.amount_by_group with portal user, which triggers _compute_invoice_taxes_by_group(), which reads AccountMove.tax_ids and write on AccountMove.amount_by_group. Portal has neither permissions. Fix : Call the template with superuser. opw-2787060 Forward-Port-Of: odoo/enterprise#26320 Forward-Port-Of: odoo/enterprise#25743
Step to reproduce: install accounting with finnish localization generate data for the balance sheet section II, III and IIII generate a balance sheet report Current behavior: balance of section III and IIII is added to section II Expected behavior: balance of section II is the sum of section II subsections opw-2702912 Forward-Port-Of: odoo/enterprise#26352 Forward-Port-Of: odoo/enterprise#26262
Original PR description
Step to reproduce: install accounting with finnish localization generate data for the balance sheet section II, III and IIII generate a balance sheet report Current behavior: balance of section III and IIII is added to section II Expected behavior: balance of section II is the sum of section II subsections opw-2702912 Forward-Port-Of: odoo/enterprise#26352 Forward-Port-Of: odoo/enterprise#26262