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][IMP] stock_analytic: make analytic distribution consistent between move and move line #653

Open
wants to merge 1 commit into
base: 16.0
Choose a base branch
from

Conversation

AungKoKoLin1997
Copy link
Contributor

@AungKoKoLin1997 AungKoKoLin1997 commented Apr 30, 2024

This PR enhances the consistency between moves and move lines for analytic_distribution. When the value is changed in one, it will also be updated in the other.

@qrtl QT4515

Copy link
Member

@yostashiro yostashiro left a comment

Choose a reason for hiding this comment

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

Code review.

@@ -72,6 +72,7 @@ def _action_done(self, cancel_backorder=False):
"company_id": move.company_id.id,
}
)
move.move_line_ids.analytic_distribution = move.analytic_distribution

Choose a reason for hiding this comment

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

move.move_line_ids.analytic_distribution = move.analytic_distribution should be on line 62.
Otherwise, during moves such as receipts, the analytic distribution of move_lines will not be updated.

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.

3 participants