OCA / product-pack

Odoo modules related to product packs
GNU Affero General Public License v3.0
45 stars 126 forks source link

[IMP] stock_product_pack: incoming/outgoing stock #96

Closed bruno-zanotti closed 1 year ago

bruno-zanotti commented 2 years ago

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.

OCA-git-bot commented 2 years ago

Hi @ernestotejeda, some modules you are maintaining are being modified, check this out!

bruno-zanotti commented 1 year ago

@ernestotejeda @pedrobaeza could you check this PR? The idea is to calculate the outgoing/incoming stock for product packs

jjscarafia commented 1 year ago

/ocabot merge patch

OCA-git-bot commented 1 year ago

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.

OCA-git-bot commented 1 year ago

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