Daily updates from Odoo
Tuesday, March 1, 2022
2 changes
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/85395Several business application screens were updated to use a compatibility layer while the user interface framework evolves. This keeps existing approval, document, spreadsheet, barcode, timesheet, dashboard, cohort, project, and signing features working reliably without changing their business behavior.
Original PR description
This PR replaces `Component` by `LegacyComponent` when the component uses owl 1's removed features like `el` and `trigger`. If a non legacy component inherits from this class then it should remove the use of those owl 1's removed features and retarget to an usual `Component`. Community PR: https://github.com/odoo/odoo/pull/85389