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

[15.0][IMP] project_timeline: improved timeline handling for project tasks #1342

Closed victoralmau closed 1 month ago

victoralmau commented 2 months ago

FWP from 14.0: https://github.com/OCA/project/pull/1335 + https://github.com/OCA/project/pull/1345

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

victoralmau commented 1 month ago

Ping @chienandalu

pedrobaeza commented 1 month ago

/ocabot merge nobump

OCA-git-bot commented 1 month ago

This PR looks fantastic, let's merge it! Prepared branch 15.0-ocabot-merge-pr-1342-by-pedrobaeza-bump-nobump, awaiting test results.

OCA-git-bot commented 1 month ago

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