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] ddmrp: Add customized Stock Moves view #446

Merged

Conversation

PauBForgeFlow
Copy link

@PauBForgeFlow PauBForgeFlow commented May 6, 2024

When checking incoming quantities or qualified demand moves, we will use a customized view that allows to redirect to the source document of that move.

fwport of #442

@OCA-git-bot
Copy link
Contributor

Hi @ChrisOForgeFlow, @LoisRForgeFlow, @JordiBForgeFlow,
some modules you are maintaining are being modified, check this out!

@BernatPForgeFlow BernatPForgeFlow force-pushed the 16.0-imp-ddmrp-customized_stock_moves_view branch from 9736ec7 to 1624c62 Compare May 14, 2024 07:22
When checking incoming quantities or qualified demand moves, we will use a customized view that allows to redirect to the source document of that move.

A stock move can be chained with many other moves and can have two sources, like a dropship. Then, to calculate the source of that stock move, a list of fields ordered by priority is followed, in which if any record is found in any of them, it is returned as a source.
For example, if we have a stock move that belongs to a dropship with related sale and purchase, it will always return the sale as source because its the first field in the list. The sources field method is extensible to add any others that are needed.
@BernatPForgeFlow BernatPForgeFlow force-pushed the 16.0-imp-ddmrp-customized_stock_moves_view branch from 1624c62 to ad046f8 Compare May 14, 2024 07:26
Copy link
Contributor

@LoisRForgeFlow LoisRForgeFlow left a comment

Choose a reason for hiding this comment

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

Functional review

/ocabot merge minor

@OCA-git-bot
Copy link
Contributor

What a great day to merge this nice PR. Let's do it!
Prepared branch 16.0-ocabot-merge-pr-446-by-LoisRForgeFlow-bump-minor, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit ef875c1 into OCA:16.0 May 14, 2024
5 of 7 checks passed
@OCA-git-bot
Copy link
Contributor

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

@LoisRForgeFlow LoisRForgeFlow deleted the 16.0-imp-ddmrp-customized_stock_moves_view branch May 14, 2024 07:47
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.

None yet

4 participants