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

[4873][FIX] stock_analytic #161

Merged
merged 3 commits into from
Oct 23, 2024
Merged

[4873][FIX] stock_analytic #161

merged 3 commits into from
Oct 23, 2024

Conversation

kanda999
Copy link
Contributor

@kanda999 kanda999 commented Oct 8, 2024

4873

Fix the issue where the analytic_distribution in stock.move.line is not updated when the analytic_distribution in stock.move is updated after a stock.move.line record is created.

)

def _inverse_analytic_distribution(self):
"""If analytic distribution is set on picking, write it on all move lines"""
Copy link
Member

Choose a reason for hiding this comment

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

Please correct this string.

Comment on lines 23 to 26
if move.analytic_distribution:
move.line_ids.write(
{"analytic_distribution": move.analytic_distribution}
)
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
if move.analytic_distribution:
move.line_ids.write(
{"analytic_distribution": move.analytic_distribution}
)
move.move_line_ids.write(
{"analytic_distribution": move.analytic_distribution}
)

@kanda999 kanda999 merged commit d1b320e into 16.0 Oct 23, 2024
3 checks passed
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