Skip to content
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

[16.0][MIG]sale_stock_analytic #616

Open
wants to merge 7 commits into
base: 16.0
Choose a base branch
from

Conversation

moitabenfdz
Copy link

No description provided.

sol_id = move_values.get("sale_line_id", False)
if sol_id:
sol_model = self.env["sale.order.line"]
sol = sol_model.browse(sol_id)
Copy link
Contributor

Choose a reason for hiding this comment

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

We should consider the case where the analytic account is at the sale order level. In that case, we have to take the sale order analytic account on every line of the stock move

Copy link
Contributor

@cvinh cvinh Feb 9, 2024

Choose a reason for hiding this comment

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

I did a PR on your branch
DynAppsNV#2

Choose a reason for hiding this comment

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

I don't think we have to do this. Passing analytic_distribution to stock move is enough.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants