OCA / project

Odoo Project Management and Services Company Addons
https://odoo-community.org/psc-teams/project-service-28
GNU Affero General Public License v3.0
287 stars 791 forks source link

[16.0][IMP] project_timeline: improved timeline handling for project tasks #1346

Closed victoralmau closed 1 month ago

victoralmau commented 1 month ago

FWP from 15.0: https://github.com/OCA/project/pull/1342

Improved timeline handling for project tasks

The fields date_assign and date_end can't be used, as they are automatically rewritten on certain flow events (user assignation and stage changed to finished one), so we need dedicated fields for the planning. A previous change switches date_assign to date_start, but it didn't change demo data, and better to use a consistent naming, prefixing both fields with planned_.

This includes the migration scripts for preserving previous data, and automations to fill planned data from the previous fields. It also pre-fills planning information from assignation date/close date as a best effort pre-planning for existing tasks.

Please @pedrobaeza and @sergio-teruel can you review it?

@Tecnativa TT50618

pedrobaeza commented 1 month ago

/ocabot merge nobump

OCA-git-bot commented 1 month ago

What a great day to merge this nice PR. Let's do it! Prepared branch 16.0-ocabot-merge-pr-1346-by-pedrobaeza-bump-nobump, awaiting test results.

OCA-git-bot commented 1 month ago

Congratulations, your PR was merged at 252f32b2f66c9f8968371959e4be9d827aa9d281. Thanks a lot for contributing to OCA. ❤️