Vauxoo / odoo

Fork of Odoo (formerly OpenERP). [This project is not publically mantained just born for internal usage with some little patches] go to official repository on github.com/odoo/odoo
https://www.odoo.com
Other
9 stars 9 forks source link

[IMP] stock_account: add fix to update average cost when quants into #496

Closed JulioSerna closed 2 years ago

JulioSerna commented 2 years ago

transit, eg.

  1. purchase order quantity 1, $120 USD Current cost 120

  2. Create transfer to another warehouse using transit location Stock A -> Transit Transit -> Stock B

  3. Validate only the move from Stock A -> Transit Current cost 120

  4. Create purchase order quantity 1, $100 USD After validate purchase order the current cost $100 USD

After this commit the current cost $110 USD

Before this commit odoo when calculate 'qty_available' do not calculated the quants into transit

After this commit whe force to recalculate 'qty_available' calculating the quants into transit as well

Description of the issue/feature this PR addresses:

Current behavior before PR:

Desired behavior after PR is merged:

-- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr