Skip to content

[FIX] project_forecast_line issues #1106

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 5 commits into from
Jul 24, 2023
Merged

Conversation

gurneyalex
Copy link
Member

@gurneyalex gurneyalex commented Apr 17, 2023

  • [FIX] forecast_line: issue in multicompany leading to wrong forecast
  • [FIX] wrong condition preventing project.task quick update path to be used
  • [FIX] wrong result when project.task quick update path is used (inversion of the sign of the task forecast)
  • [FIX] crash when a task is not related to a project

when running in multi company, sometimes the user making a change is not connected
using the company of the record. In this case the default value for company_id on
forecast.line will lead to a wrong forecast.

we fix this by using the best company when updating the forecast (the
employee's company for task assigned to employees or leaves, the sale
line's company for sales forecast
the condition was wrong, preventing the fast update from being used
when only the remaining time is updated
@gurneyalex gurneyalex added this to the 15.0 milestone Apr 17, 2023
when using the quick update, we would get an inversion of the sign of the forecast
because the ratio was negative
Copy link

@thomaspaulb thomaspaulb left a comment

Choose a reason for hiding this comment

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

Time to merge this?

@leemannd
Copy link
Contributor

/ocabot merge patch

@OCA-git-bot
Copy link
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 15.0-ocabot-merge-pr-1106-by-leemannd-bump-patch, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 445f2d7 into OCA:15.0 Jul 24, 2023
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at 7b7ea39. 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.

5 participants