Daily updates from Odoo
Friday, November 22, 2024
8 changes · master
Enhancements to existing features
Bulk changes to helpdesk tickets and field service tasks now reuse sales order line lookups instead of repeating the same search for each record. This reduces processing time and database load when many records share the same customer or team, making large updates noticeably faster.
Original PR description
Steps to reproduce: ------------------- 1. Install Project, Timesheets, Helpdesk and Sales apps 2. Create many tickets (e.g. 5k) associated with the same helpdesk team 3. Change the project linked to…
Steps to reproduce:
-------------------
1. Install Project, Timesheets, Helpdesk and Sales apps
2. Create many tickets (e.g. 5k) associated with the same helpdesk team
3. Change the project linked to the helpdesk team
4. It should update the SOL of all tickets linked to that team
Other way to reproduce:
1. Install Project, Timesheets, Helpdesk and Sales apps
2. Create many tickets
3. Go to the list view of tickets
4. Update the customer in all those tickets
Fix:
-------------------
The idea is to batch the RPC (search) made by the method "_get_last_sol_of_customer()". Avoiding to do an RPC for each ticket, we can now re-use the computed SOLs as we store them in a dictionary. It particularly improve performance if we compute the sale_line_id of many tickets having similar commercial partners.
Benchmark:
-------------------
- Usecase: Create 5k tickets associated with an helpdesk team, change the project linked to the helpdesk team, it should update the SOL of all those tickets.
- Parameters: In local, run with "--limit-memory-soft=8589934592", "--limit-memory-hard=8589934592".
- Results:
Without optimization: 34 seconds, 30 665 queries
With optimization: 22 seconds, 15 397 queries
related-https://github.com/odoo/odoo/pull/185132
task-4255293Referral rewards are easier to browse and manage: reward cards now show the award image, the reward list includes the Gift Responsible, and the buying message is clearer. These updates help HR teams and employees better understand reward options and ownership at a glance.
Original PR description
1. Show the image of the award in kanban view. 2. Add `Gift Responsible` to reward list view. 3. Update the reward buying message. task-4296804
Users can now duplicate approval requests directly from the form and list view menu. This makes it faster to create similar requests and reduces repetitive manual entry.
Original PR description
This PR improves the approval request form and list view by adding a `Duplicate` option to the menu. task-3685226
Lithuanian payroll rules now calculate taxable and sick-pay amounts directly inside the relevant salary rules instead of relying on a hidden payslip method. This makes payroll calculations easier to review, maintain, and validate without changing the intended business outcome.
Original PR description
Problem ---------- The method "payslip._get_l10n_lt_taxable_amount" is used in salary rules that makes the computation non-transparent. Objective ---------- Put this method in the python code field of salary rules directly Solution ---------- Done, with the sick argument removed. task-4134314
Helpdesk tickets submitted through the website no longer show the automatic “external submission” text as if it were a message from a private user. The information is still kept as an internal note and in the ticket description, reducing confusion for support teams.
Original PR description
[IMP] website_helpdesk: remove 'external submission' from messages Before this commit: - When submitting a ticket through the web form, 'external submission' is displayed as a message from 'private user' and as a note. But, the private user haven't really send any message. After this commit: - Keep the information only as a note and in the description. task-4216270
Web Studio's automated tests were updated to use a newer testing approach, replacing older test utilities. This is an internal quality improvement that helps maintain reliability without changing day-to-day user features.
Original PR description
This commit aims to convert QUnit tests to hoot that rely on legacy mail tests utils and legacy bus tests utils. Part of task-3818666
Users can now create and edit Brazil Avatax operation types in Odoo, matching custom setup options available in the Avatax portal. This helps businesses keep their Odoo tax configuration aligned with customer-specific Avatax settings.
Original PR description
We include the default ones Avatax has in their portal. But customers can create custom operation types on the Avatax side and so need to do similar on our side as well. task-4288101
Studio now includes an Actions tab where users can quickly view and create automated server actions for a model. Newly created actions are automatically added to the model's contextual menu, making common workflow automation easier to set up and use.
Original PR description
This commit adds a studio Tab to quickly access and create ir.actions.server objects. Upon creation, created actions are automatically added to the model's contextual menu. task-4268990