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

[7.0] Request Procurement will lead to wrong inventory quantity when input location rather than stock #3166

Closed
oliverzgy opened this issue Oct 20, 2014 · 3 comments
Labels
Logistics about stock, mrp, delivery, purchase

Comments

@oliverzgy
Copy link

Here're the steps to reproduce the issue at runbot -

 1. define a new item with 'buy' supply method 
 2. define a warehouse with input location - quality control (that has a chain to stock)

screenshot from 2014-10-20 10 46 02

screenshot from 2014-10-20 10 49 06

screenshot from 2014-10-20 10 49 45

3. Request Procurement  - 3 pcs

screenshot from 2014-10-20 10 52 30

screenshot from 2014-10-20 10 53 34

4. update the po's destination location to quality control and then conform the po

screenshot from 2014-10-20 10 55 53

5. the future stock move of this item

screenshot from 2014-10-20 11 00 08

6. receive the products and process the internal move from quality control to stock. The inventory quantity of this item turn out to be 6 pcs

screenshot from 2014-10-20 11 06 01

screenshot from 2014-10-20 11 06 35

@oliverzgy
Copy link
Author

In this process the reservation - procurement --> stock is updated to quality control --> stock. The correct update would be stock --> stock

@oliverzgy
Copy link
Author

Fix: update this line https://github.com/odoo/odoo/blob/7.0/addons/purchase/purchase.py#L702

from

order_line.move_dest_id.write({'location_id': order.location_id.id})

to

order_line.move_dest_id.write({'location_id': order_line.move_dest_id.location_dest_id.id})

@Yenthe666 Yenthe666 added the Logistics about stock, mrp, delivery, purchase label Dec 6, 2017
@Yenthe666
Copy link
Collaborator

Hi @oliverzgy,

Thank you for your bug report and our apoligies that we haven't had the time to look at this bug report. We do our best to handle all of them, but we sometimes miss some.
At this point Odoo 7 & Odoo 8 is no longer supported as Odoo only supports three versions (9.0, 10.0, 11.0 at the moment).
If you can still reproduce this issue on Odoo 9, Odoo 10 or Odoo 11 we encourage you to create a new bug report.

Regards,
Yenthe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Logistics about stock, mrp, delivery, purchase
Projects
None yet
Development

No branches or pull requests

2 participants