Daily updates from Odoo
Tuesday, March 1, 2022
3 changes · master
Enhancements to existing features
Belgian payroll setup now creates resource calendars in batches instead of one by one. This improves setup performance and reduces processing time for companies configuring payroll data.
Original PR description
Community PR: https://github.com/odoo/odoo/pull/85532
The Field Service demo environment now includes more realistic projects and tasks across stages, dates, billing states, worksheets, timesheets, subtasks, activities, tags, ratings, and completed reports. This makes demonstrations and testing closer to real business workflows, especially for planning, invoicing, reporting, and task analysis.
Original PR description
In this task: - An fsm project added configured at employee rate with many tasks at different stages. - Some tasks are recurrent, archived, to invoice - Another worksheet template added and used with some tasks - For some tasks, we add initially planned hours, timesheets, sub-tasks and timesheets on these sub-tasks, activities were scheduled, tags added and the status is either 'blocked' or 'ready', ratings added - Data added for the working hours/days to assign/close metrics of the tasks analysis report - Some tasks marked as done with worksheets, products, sent and signed reports, linked to an SO Task-id : 2680425
Code cleanup and technical improvements
Gantt chart dependency handling has been moved into the shared Gantt component so it can be reused beyond Projects. Scheduling behavior is now more cautious around complex linked tasks, reducing the risk of unwanted date changes while keeping Project-specific extensions available.
Original PR description
This commit moves the dependency mecanism that had been developed in
project_enterprise into web_gantt.
This commit creates a basic rescheduling behavior in web_gantt that can
be extended in other modules (as it is done for project_enterprise in
this commit).
An additional module `test_web_gantt` has been created in order to test
the the rescheduling feature on some fake models.
Functionaly wise, we reduced the scope of the rescheduling algorithm, in
order to prevent undesired results. This commit prevents rescheduling
so called `loops` when it detects that it can not solve them. `Loops`
are not cyclic dependencies but records that are linked together, forming
a loop, as illustrated here below:
------> 4
| |
| v
1 -> 2 ->3
task-2691454
see also:
- https://github.com/odoo/documentation/pull/1529
- https://github.com/odoo/odoo/pull/85395