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

@AungKoKoLin1997 AungKoKoLin1997 force-pushed the 4515-imp-stock_analytic branch from 9d93712 to b59d268 Compare May 8, 2024 02:48
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.

@AungKoKoLin1997 AungKoKoLin1997 force-pushed the 4515-imp-stock_analytic branch from b59d268 to 55f28ec Compare May 10, 2024 03:39
@AungKoKoLin1997 AungKoKoLin1997 force-pushed the 4515-imp-stock_analytic branch from 55f28ec to f7e9deb Compare July 8, 2024 05:43
@AungKoKoLin1997 AungKoKoLin1997 force-pushed the 4515-imp-stock_analytic branch from f7e9deb to 38508f7 Compare October 21, 2024 08:12
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