Friday, June 17, 2022
12 changes · master
Enhancements to existing features
This update adds automated checks for key Field Service processes, including completing tasks, reviewing task reporting measures, and turning task work into sales orders and invoices. It helps reduce the risk of future changes breaking important service-to-invoicing workflows.
Original PR description
Before these changes No unit test for many cases: After theses changes: - Testing Invoicing Flow - Testing Marking task as done - Testing Task analysis measures compute Task-2816818
This update adds automated test coverage to confirm that helpdesk tickets correctly carry project analytic accounts and tags into related timesheets. It helps reduce the risk of reporting or billing inconsistencies when support work is tracked against tickets.
Original PR description
In this commit, added test of helpdesk ticket analytic account and analytic tags
Test Case:
----------
1. Create Analytic Tags
2. Set Project Analytic Tag
3. Create Ticket
4. Check the default analytic account of the project and ticket
5. Check the default analytic tag of the project and ticket
6. Update the analytic_tag_ids of the ticket
7. Create timesheet
8. Check the analytic tag of the timesheet and ticket
task-2878938Approval forms now refresh through the underlying data model rather than the visual form component. This should make approval screens more consistent and easier to maintain without changing the overall user workflow.
Original PR description
task-2886202
VoIP configuration is now included in each user's settings, making it easier to manage calling preferences from the user profile area. This helps businesses keep phone setup details aligned with individual users and supports smoother VoIP administration.
Original PR description
Community: https://github.com/odoo/odoo/pull/93390
Resolved issues and error corrections
This fix ensures spreadsheet pivot headers keep the selected date grouping when formulas use positional references. Users who adjust pivot formulas manually will now see the correct day-level results instead of mismatched values.
Original PR description
…onal_formula_test Steps to reproduce: - Insert a pivot with a date grouped by day - Replace a PIVOT.HEADER formula with a positional argument (=PIVOT.HEADER(1,"#create_date:day",1)) => Result is not correct Task-id 2885964
Miscellaneous changes
To reproduce ============ L10n_cl installed In CL company Create a journal entry Try and reverse it a User Error is raised Purpose ======= the method `reverse_moves` checks `reason` field and raises the error if it's not provied, but the `reason` field is invisible when `move_type = 'entry'` Specification ============= to solve the issue we raise the error only when `move_type != 'entry'` opw-2861694 Forward-Port-Of: odoo/enterprise#28381
Original PR description
To reproduce ============ L10n_cl installed In CL company Create a journal entry Try and reverse it a User Error is raised Purpose ======= the method `reverse_moves` checks `reason` field and raises the error if it's not provied, but the `reason` field is invisible when `move_type = 'entry'` Specification ============= to solve the issue we raise the error only when `move_type != 'entry'` opw-2861694 Forward-Port-Of: odoo/enterprise#28381
Steps to follow: Go to accounting > Bank Click on the three dots View > Statements Click on the only record Click on the reconcile button -> A Traceback appears Cause of the issue: The template checks if the partner_id is set before using the partner_name but that is not always true since https://github.com/odoo/odoo/pull/92364 modified the `_prepare_widget_writeoff_vals` method. opw-2882490 Forward-Port-Of: odoo/enterprise#28529
Original PR description
Steps to follow:
Go to accounting > Bank
Click on the three dots
View > Statements
Click on the only record
Click on the reconcile button
-> A Traceback appears
Cause of the issue:
The template checks if the partner_id is set before
using the partner_name but that is not always true since
https://github.com/odoo/odoo/pull/92364 modified the
`_prepare_widget_writeoff_vals` method.
opw-2882490
Forward-Port-Of: odoo/enterprise#28529Task: 2884593 Add default_asset_type in the context in create() to prevent missing asset_type bug. Forward-Port-Of: odoo/enterprise#28481
Original PR description
Task: 2884593 Add default_asset_type in the context in create() to prevent missing asset_type bug. Forward-Port-Of: odoo/enterprise#28481
Move Plausible part into website_appointment since it needs the website module to work and crashes the validation step with just the appointment module installed. Followup of odoo/enterprise#27911 task-2885762 Forward-Port-Of: odoo/enterprise#28526
Original PR description
Move Plausible part into website_appointment since it needs the website module to work and crashes the validation step with just the appointment module installed. Followup of odoo/enterprise#27911 task-2885762 Forward-Port-Of: odoo/enterprise#28526
currently, changing the employee in a mail template throws an error and it happens because the round function doesn't get the correct value of the 'timesheet_hours' field. in this commit, we fix the issue by checking the value of the field before rounding. after this commit, changing the employee in the mail template does not throw an error task-2877225 Forward-Port-Of: odoo/enterprise#28072
Original PR description
currently, changing the employee in a mail template throws an error and it happens because the round function doesn't get the correct value of the 'timesheet_hours' field. in this commit, we fix the issue by checking the value of the field before rounding. after this commit, changing the employee in the mail template does not throw an error task-2877225 Forward-Port-Of: odoo/enterprise#28072
The helpdesk teams privacy_visibility tooltip doesn't reflect the actual behavior for the "Invited portal users and all internal users" selection. This PR rephrases the tooltip of that field in order to correctly match its behavior. Task-2871771 Forward-Port-Of: odoo/enterprise#28163
Original PR description
The helpdesk teams privacy_visibility tooltip doesn't reflect the actual behavior for the "Invited portal users and all internal users" selection. This PR rephrases the tooltip of that field in order to correctly match its behavior. Task-2871771 Forward-Port-Of: odoo/enterprise#28163
A bug was introduced in the `_create_extra_move_lines` method by using the same overwritten dictionary object to create multiple move lines. By copying the shared dictionary values for each line, the problem is resolved. opw-2861728 Forward-Port-Of: odoo/enterprise#28451
Original PR description
A bug was introduced in the `_create_extra_move_lines` method by using the same overwritten dictionary object to create multiple move lines. By copying the shared dictionary values for each line, the problem is resolved. opw-2861728 Forward-Port-Of: odoo/enterprise#28451