Skip to content

[18.0][MIG] project_forecast_line: Migration to 18.0#1692

Merged
OCA-git-bot merged 76 commits into
OCA:18.0from
solomonprabu:18.0-mig-project_forecast_line
Jun 1, 2026
Merged

[18.0][MIG] project_forecast_line: Migration to 18.0#1692
OCA-git-bot merged 76 commits into
OCA:18.0from
solomonprabu:18.0-mig-project_forecast_line

Conversation

@solomonprabu
Copy link
Copy Markdown
Contributor

[Migrated] project_forecast_line to Odoo 18.0.

Note on Views:
I kept the inheritance targeting project.project_project_stage_view_tree. Even though Odoo 18 is moving toward _view_list naming, the base project module still uses the _view_tree ID for this record, so I've used that to avoid any reference errors.

yankinmax and others added 30 commits March 10, 2026 15:24
in some cases, we could have capacity consumed by a task which was not matching
a work capacity line in the period because of a faulty optimisation we were making
which skipped the creation of lines with a capacity of 0 -> then we had no line on which
to compute the negative consolidated capacity.

We remove the optimisation to fix this case and show the problematic periods
in the consolidated capacity graphs
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: project-15.0/project-15.0-project_forecast_line
Translate-URL: https://translation.odoo-community.org/projects/project-15-0/project-15-0-project_forecast_line/
During some operations, forecast lines are deleted and recreated. This
can lead to some hr.employee.forecast.role lines being deleted which
leaves the forecast lines on the same period without a related document
to store the consolidated capacity. Normally that line is recreated
shortly afterwards but the creation does not recompute the link between
the parent-less lines and the new one. This patches forces the
recomputation when new lines are created.
The idea is to have two consolidated forecast fields, instead of setting.
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: project-15.0/project-15.0-project_forecast_line
Translate-URL: https://translation.odoo-community.org/projects/project-15-0/project-15-0-project_forecast_line/
Add computed fields to written fields to trigger forecast lines update
Add hook for several UoM hours/days conversion
Copy link
Copy Markdown
Contributor

@luisDIXMIT luisDIXMIT left a comment

Choose a reason for hiding this comment

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

Good work, LGTM, I won't block the PR.

@OCA-git-bot
Copy link
Copy Markdown
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). 🤖

@solomonprabu
Copy link
Copy Markdown
Contributor Author

@sebastienbeau PR is ready to be merged!

sherpa-c2c added a commit to sherpa-c2c/project that referenced this pull request May 16, 2026
Based on OCA#1692 for 18.0; manually bumped and sanity-checked for 19.0.
sherpa-c2c added a commit to sherpa-c2c/project that referenced this pull request May 16, 2026
Based on OCA#1692 for 18.0; manually bumped and sanity-checked for 19.0.
sherpa-c2c added a commit to sherpa-c2c/project that referenced this pull request May 16, 2026
Based on OCA#1692 for 18.0; manually bumped and sanity-checked for 19.0.
sherpa-c2c added a commit to sherpa-c2c/project that referenced this pull request May 16, 2026
Based on OCA#1692 for 18.0; manually bumped and sanity-checked for 19.0.
sherpa-c2c added a commit to sherpa-c2c/project that referenced this pull request May 16, 2026
Based on OCA#1692 for 18.0; manually bumped and sanity-checked for 19.0.
sherpa-c2c added a commit to sherpa-c2c/project that referenced this pull request May 16, 2026
Based on OCA#1692 for 18.0; manually bumped and sanity-checked for 19.0.
sherpa-c2c added a commit to sherpa-c2c/project that referenced this pull request May 16, 2026
Based on OCA#1692 for 18.0; manually bumped and sanity-checked for 19.0.
@solomonprabu
Copy link
Copy Markdown
Contributor Author

@AaronHForgeFlow PR merge is still pending.

@solomonprabu
Copy link
Copy Markdown
Contributor Author

@rafaelbn Could you please merge this.

Copy link
Copy Markdown
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.

@solomonprabu solomonprabu force-pushed the 18.0-mig-project_forecast_line branch from 39750cc to 746255c Compare May 29, 2026 09:44
@OCA-git-bot OCA-git-bot added series:18.0 mod:project_forecast_line Module project_forecast_line labels May 29, 2026
@solomonprabu
Copy link
Copy Markdown
Contributor Author

Please squash the commits as explained here: https://github.com/OCA/maintainer-tools/wiki/Merge-commits-in-pull-requests#mergesquash-the-commits-generated-by-bots-or-weblate

Hi, I have squashed my commits.

@leemannd
Copy link
Copy Markdown
Contributor

leemannd commented Jun 1, 2026

/ocabot migration project_forecast_line

@OCA-git-bot OCA-git-bot added this to the 18.0 milestone Jun 1, 2026
@leemannd
Copy link
Copy Markdown
Contributor

leemannd commented Jun 1, 2026

/ocabot merge nobump

@OCA-git-bot
Copy link
Copy Markdown
Contributor

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

@OCA-git-bot OCA-git-bot merged commit 2a35d69 into OCA:18.0 Jun 1, 2026
7 checks passed
@OCA-git-bot
Copy link
Copy Markdown
Contributor

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

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.