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

[IMP] stock_move_packaging_qty: report done packaging qtys #1988

Merged
merged 1 commit into from
Apr 12, 2024

Conversation

yajo
Copy link
Member

@yajo yajo commented Apr 9, 2024

The title sounds like a simple task, but it requires many changes:

  • Store done pkg qtys in stock.move.line records.
  • The qtys are not computed. Instead, the user must write them by hand. This happens because many times the packaging just indicates an approximate content, but is not always exact until reaching this point of the process, where both the done qtys (both UoM and packagings) are measured and get real values.
  • Added compute and inverse on stock.move for simple scenarios where one move = one move line.
  • Add all this on all reports and views.

This change also opens the door to be able to get a real inventory measured in product packagings. That's not implemented in this MVP, but the idea is recorded.

@moduon MT-5531

@rousseldenis
Copy link
Contributor

@yajo Could you check tests also ?

The title sounds like a simple task, but it requires many changes:

- Store done pkg qtys in `stock.move.line` records.
- The qtys are not computed. Instead, the user must write them by hand. This happens because many times the packaging just indicates an approximate content, but is not always exact until reaching this point of the process, where both the done qtys (both UoM and packagings) are measured and get real values.
- Added compute and inverse on `stock.move` for simple scenarios where one move = one move line.
- Add all this on all reports and views.

This change also opens the door to be able to get a real inventory measured in product packagings. That's not implemented in this MVP, but the idea is recorded.

@moduon MT-5531
Copy link
Member Author

@yajo yajo left a comment

Choose a reason for hiding this comment

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

All attended, thanks. Could you review again?

stock_move_packaging_qty/__manifest__.py Outdated Show resolved Hide resolved
stock_move_packaging_qty/models/stock_move.py Show resolved Hide resolved
Copy link
Contributor

@Gelojr Gelojr left a comment

Choose a reason for hiding this comment

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

@yajo yajo requested a review from rousseldenis April 11, 2024 06:36
@rafaelbn rafaelbn added this to the 16.0 milestone Apr 11, 2024
Copy link
Member

@rafaelbn rafaelbn left a comment

Choose a reason for hiding this comment

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

👍🏼 Great improvement!

@rafaelbn
Copy link
Member

@rousseldenis @LoisRForgeFlow can we merge? 😄 ❤️

@rafaelbn
Copy link
Member

/ocabot merge minor

@OCA-git-bot
Copy link
Contributor

On my way to merge this fine PR!
Prepared branch 16.0-ocabot-merge-pr-1988-by-rafaelbn-bump-minor, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 82e09cb into OCA:16.0 Apr 12, 2024
5 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at c9a94fa. Thanks a lot for contributing to OCA. ❤️

@yajo yajo deleted the 16.0-smpq-done_pkg_qty branch April 12, 2024 09:10
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.

6 participants