Daily updates from Odoo
Navigate
Branch
Thursday, December 16, 2021
8 changes
Enhancements to existing features
The mail enterprise code now uses a clearer name for its JavaScript attachment model, helping distinguish it from the server-side attachment model. This is an internal cleanup that reduces confusion for future maintenance without changing user-facing behavior.
Original PR description
Rename javascript model `mail.attachment` to `Attachment` in order to distinguish javascript model from python model. Community: https://github.com/odoo/odoo/pull/80601 Part of task-2701674.
Mobile timesheet users now get better spacing between the action button and timer, making the project screen easier to use. Helpdesk teams can also show ticket ratings in lists when needed and search tickets by rating, improving visibility into customer feedback.
Original PR description
timesheet_grid: - The space between action button and timer on mobile should be sufficient on project. helpdesk: - In list view of helpdesk add rating field, the field should optional and hidden by default. - Add rating in search of helpdesk so customer can search ticket by its rating. closes #21880 TaskID: 2667754
Code cleanup and technical improvements
This update reorganizes and cleans internal tests for event-related features, while adding coverage for performance-focused work. It helps improve reliability and confidence in future event changes without introducing visible changes for users.
Original PR description
Enterprise update for community cleaning in event test classes. See linked community PR for more details. Task-2703285 (event performance) Task-2703289 (event testing)
Miscellaneous changes
Before this commit, when the current user accesses to the helpdesk app, we compute his stats to display in the dashboard. For this stat, we check if the user can see at least a team with those features enabled and he is a member of the team. The problem is to check if the user is a member of the team we use the `member_ids` field and this field is only used for the random and balanced assignment methods. So, for the helpdesk team in which the assignment method is always the manual one tha
Original PR description
Before this commit, when the current user accesses to the helpdesk app, we compute his stats to display in the dashboard. For this stat, we check if the user can see at least a team with those…
Before this commit, when the current user accesses to the helpdesk app, we compute his stats to display in the dashboard. For this stat, we check if the user can see at least a team with those features enabled and he is a member of the team. The problem is to check if the user is a member of the team we use the `member_ids` field and this field is only used for the random and balanced assignment methods. So, for the helpdesk team in which the assignment method is always the manual one than the `member_ids` will contain by default the user who created the helpdesk team and never changed if the assignment method never changes too. Based on this, if another user than the one whose create the helpdesk teams, then this user could see no stat for SLA and Ratings features since he will not be a member of a helpdesk team. This commit changes domain to check if the user can see at least a team. We remove the condition to check if he is a member of the team. Because, we can just let the ir.rules work to filter and get the team. task-2671848 Forward-Port-Of: odoo/enterprise#22949
The webview in Android don't support the blob download file. In `web_mobile` an override was made to call a native method. After to the WOWL refactoring, this override still exist but only for the legacy part. This commit adds the counter part for the new WebClient. Steps to reproduce: * Open Odoo in the Android Mobile App * Go to 'Inventory' app * Select 'Receipts' * Select an receipt (e.g. WH/IN/00002) * Open the 'Action' dropdown * Select Print * A toast is shown ("The Odoo
Original PR description
The webview in Android don't support the blob download file.
In `web_mobile` an override was made to call a native method.
After to the WOWL refactoring, this override still exist but only
for the legacy part.
This commit adds the counter part for the new WebClient.
Steps to reproduce:
* Open Odoo in the Android Mobile App
* Go to 'Inventory' app
* Select 'Receipts'
* Select an receipt (e.g. WH/IN/00002)
* Open the 'Action' dropdown
* Select Print
* A toast is shown ("The Odoo Mobile Apps only supports file downloads
using the HTTP protocol.") => BUG
opw-2702665
Forward-Port-Of: odoo/enterprise#22918Purpose ======= In some schedule configurations, the employee could start from the 7th of the month. Don't remove 1 month on the number of complete month count for that use case. Forward-Port-Of: odoo/enterprise#22880
Original PR description
Purpose ======= In some schedule configurations, the employee could start from the 7th of the month. Don't remove 1 month on the number of complete month count for that use case. Forward-Port-Of: odoo/enterprise#22880
Before this fix, consider an asset (method linear) with the exisiting depreciation is 100% of depreciations (when importing data to odoo of a already 100% deprecated asset). The depreciation schedule report would show "0%" in the Rate (14.0) or Duration / Rate (15.0) column instead of the correct rate or the depreciation duration. This came from an error in computation of the total duration (duration + depreciation_number_import) in the SQL request when duration is 0. Task: 2702612 Forward-
Original PR description
Before this fix, consider an asset (method linear) with the exisiting depreciation is 100% of depreciations (when importing data to odoo of a already 100% deprecated asset). The depreciation schedule report would show "0%" in the Rate (14.0) or Duration / Rate (15.0) column instead of the correct rate or the depreciation duration. This came from an error in computation of the total duration (duration + depreciation_number_import) in the SQL request when duration is 0. Task: 2702612 Forward-Port-Of: odoo/enterprise#22845
Current behavior: When you set a tax status to inactive, it won't appear in report anymore. Steps to reproduce: - Find a tax used in tax report - Set the status of this tax to inactive - The tax do not appear in the report anymore opw-2709909 Forward-Port-Of: odoo/enterprise#22914
Original PR description
Current behavior: When you set a tax status to inactive, it won't appear in report anymore. Steps to reproduce: - Find a tax used in tax report - Set the status of this tax to inactive - The tax do not appear in the report anymore opw-2709909 Forward-Port-Of: odoo/enterprise#22914