Skip to content

[18.0][MIG] project_timeline: Migration to version 18.0 #1478

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 60 commits into from
May 13, 2025

Conversation

carlos-lopez-tecnativa
Copy link
Contributor

@carlos-lopez-tecnativa carlos-lopez-tecnativa commented Apr 17, 2025

@pedrobaeza
Copy link
Member

/ocabot migration project_timeline

@OCA-git-bot OCA-git-bot added this to the 18.0 milestone Apr 17, 2025
@OCA-git-bot OCA-git-bot mentioned this pull request Apr 17, 2025
30 tasks
Copy link
Contributor

@BhaveshHeliconia BhaveshHeliconia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link

@coleste coleste left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

pedrobaeza and others added 23 commits May 13, 2025 11:08
==========================
Timeline view for projects
==========================

This module extends the standard tasks actions to add the timeline view to
them, and also adds the needed fields in the view for handling them.

Usage
=====

* Go to *Project > Project > Tasks*.
* Click on the icon with a clock.
* You will see the tasks in the new view.
* [IMP] Add start and end date in task form view

* [IMP] Add start and end date in task form view
* Timeline for project.project (OCA#398)

  Creates a timeline for projects. Useful for huge campaigns with multiple projects.

* Unsetting date_end (OCA#402)

* Tests

* Task timeline template (OCA#410)
Currently, if `date_end` is not set it will result in a KeyError.
…_state : blocked tasks are red and task without user are white

[IMP] project_timeline : planned_hours is displayed only if not null
Modules that bring `gantt` and `map` view mode are not declared in module dependency
Those modes were introduced by https://github.com/OCA/project/pull/869/files#r785447743
Currently translated at 33.3% (2 of 6 strings)

Translation: project-15.0/project-15.0-project_timeline
Translate-URL: https://translation.odoo-community.org/projects/project-15-0/project-15-0-project_timeline/pt_BR/
augustodinizl and others added 18 commits May 13, 2025 11:08
Currently translated at 100.0% (4 of 4 strings)

Translation: project-16.0/project-16.0-project_timeline
Translate-URL: https://translation.odoo-community.org/projects/project-16-0/project-16-0-project_timeline/pt_BR/
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.

TT50618

Co-Authored-By: Pedro M. Baeza <[email protected]>

[IMP] project_timeline: Add planned_date_* fields to the task tree view

TT50618
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: project-16.0/project-16.0-project_timeline
Translate-URL: https://translation.odoo-community.org/projects/project-16-0/project-16-0-project_timeline/
Currently translated at 85.7% (6 of 7 strings)

Translation: project-16.0/project-16.0-project_timeline
Translate-URL: https://translation.odoo-community.org/projects/project-16-0/project-16-0-project_timeline/es/
Currently translated at 100.0% (7 of 7 strings)

Translation: project-16.0/project-16.0-project_timeline
Translate-URL: https://translation.odoo-community.org/projects/project-16-0/project-16-0-project_timeline/it/
Currently translated at 100.0% (7 of 7 strings)

Translation: project-16.0/project-16.0-project_timeline
Translate-URL: https://translation.odoo-community.org/projects/project-16-0/project-16-0-project_timeline/es_AR/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: project-17.0/project-17.0-project_timeline
Translate-URL: https://translation.odoo-community.org/projects/project-17-0/project-17-0-project_timeline/
…vent errors on timeline view

complementary to commit 42bd28c
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: project-17.0/project-17.0-project_timeline
Translate-URL: https://translation.odoo-community.org/projects/project-17-0/project-17-0-project_timeline/
Currently translated at 100.0% (7 of 7 strings)

Translation: project-17.0/project-17.0-project_timeline
Translate-URL: https://translation.odoo-community.org/projects/project-17-0/project-17-0-project_timeline/it/
Currently translated at 100.0% (7 of 7 strings)

Translation: project-17.0/project-17.0-project_timeline
Translate-URL: https://translation.odoo-community.org/projects/project-17-0/project-17-0-project_timeline/es/
@carlos-lopez-tecnativa carlos-lopez-tecnativa force-pushed the 18.0-mig-project_timeline branch from 2104290 to cd3ca4a Compare May 13, 2025 16:08
@carlos-lopez-tecnativa
Copy link
Contributor Author

ping @pedrobaeza @victoralmau please review this

Copy link
Member

@pedrobaeza pedrobaeza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested on runboat.

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

@OCA-git-bot
Copy link
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 18.0-ocabot-merge-pr-1478-by-pedrobaeza-bump-nobump, awaiting test results.

@OCA-git-bot
Copy link
Contributor

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

@OCA-git-bot OCA-git-bot merged commit 6be7348 into OCA:18.0 May 13, 2025
7 checks passed
@pedrobaeza pedrobaeza deleted the 18.0-mig-project_timeline branch May 13, 2025 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.