Closed bruno-zanotti closed 1 year ago
Hi @ernestotejeda, some modules you are maintaining are being modified, check this out!
@ernestotejeda @pedrobaeza could you check this PR? The idea is to calculate the outgoing/incoming stock for product packs
/ocabot merge patch
What a great day to merge this nice PR. Let's do it! Prepared branch 13.0-ocabot-merge-pr-96-by-jjscarafia-bump-patch, awaiting test results.
Congratulations, your PR was merged at c5b940c1687542de494a0bb6b9c98e4a8c72be69. Thanks a lot for contributing to OCA. ❤️
Before this commit, the module do not compute the incoming and outgoing pack stock. Now is done following this logic:
Then:
Stock incoming = _Stock_on_handinc - _Stock_onhand This is the number of extra packs that we will be able to assemble if the incoming stock of the components arrives.
Stock outgoing = _Stock_onhand + _Stock_on_handout This is the number of packs that we will NOT be able to assemble if the outgoing stock of the components is delivered
Stock virtual available = available + incoming - outgoing Note that this is an improvement because now we are following the same logic for virtual stock as Odoo in normal products.