Return goods pick the wrong stock location when using automatic chaining moves

Bug #924009 reported by Kevin McMenamin
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Confirmed
Wishlist
OpenERP R&D Addons Team 2

Bug Description

V6.0.3

I have inwards goods location chained to stock location with automatic move.
I return stock to a supplier from the action button on the receive products view. The stock is automatically taken from the inwards goods location, so now I have a negative stock in inwards goods location and an overstated stock quantity in stock.

So how to resolve??
Do an internal transfer from stock to inwards goods - no, as this creates a stock move back to stock.
Do a stock adjustment/physical inventory - no, as any positive adjustment to inwards goods (ie to set to 0 means moving 20 from inventory loss to inwards goods) creates an automatic move to stock.

Solutions:
1. The return should look at the location set up and if an automatic move exists take from that location instead of inwards goods.
2. The stock adjustment/physical inventory processes should ignore chaining rules for any moves created.

Related branches

Changed in openobject-addons:
assignee: nobody → OpenERP Publisher's Warranty Team (openerp-opw)
tags: added: maintenance
Changed in openobject-addons:
status: New → Fix Committed
importance: Undecided → Low
Revision history for this message
Quentin THEURET @Amaris (qtheuret) wrote :

This issue is also present in the trunk version.

Revision history for this message
Kevin McMenamin (kevin-mcmenamin) wrote :

this proposed fix has a pile of code unrelated to the bug!

Revision history for this message
Kevin McMenamin (kevin-mcmenamin) wrote :

NOTE: Fix fails in a multi-warehouse environment - returned from wrong warehouse

Changed in openobject-addons:
status: Fix Committed → In Progress
summary: - Problem with side effect of automatic chaining moves
+ Return goods pick the wrong stock location when using automatic chaining
+ moves
tags: added: chained-location
Revision history for this message
Rifakat Husen (OpenERP) (rha-openerp) wrote :

We let any user manually do the oprations intead of doing it automatically. Any automatic action may
create other side effects too for stable version. Hence marking importance as Wishlist. Still any customer
can use the provided patch if it meets their tests.

Thanks for understanding!

Changed in openobject-addons:
importance: Low → Wishlist
status: In Progress → Confirmed
Revision history for this message
Naresh(OpenERP) (nch-openerp) wrote :

As this is a feature request rather then a bug I am removing the OPW team as responsible . It requires big changes to have it in stable which is too risky.

Thanks,
Naresh Soni

Changed in openobject-addons:
assignee: OpenERP Publisher's Warranty Team (openerp-opw) → nobody
Amit Parik (amit-parik)
Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 2 (openerp-dev-addons2)
Revision history for this message
Kevin McMenamin (kevin-mcmenamin) wrote :

Any update on this as would like to see it fixed

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.