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_owner_restriction #1854

Draft
wants to merge 2 commits into
base: 16.0
Choose a base branch
from

Conversation

AungKoKoLin1997
Copy link
Contributor

@AungKoKoLin1997 AungKoKoLin1997 commented Jan 28, 2025

Supersede of #1385.

@qrtl QT4207

Extend following methods for the scenario where owner restriction should be forced:

- _update_available_quantity() (stock.quant)
- _update_reserved_quantity() (stock.quant)

Split lines to identify the owner_restriction setting into separate method for
better extensibility.

Fix read_group() (stock.quant) which was incorrectly assigning the owner record
in the domain instead of the id.
- Add a compute function for restrict_partner_id.
- Unlink stock move lines depending on owner_restriction if owner_id is updated.
@AungKoKoLin1997 AungKoKoLin1997 marked this pull request as draft January 28, 2025 05:40
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.

1 participant