Push flow and Incorrect Stock Quantity by Location

Bug #1210947 reported by Oliver Yuan
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
New
Undecided
OpenERP Publisher's Warranty Team

Bug Description

Ubuntu 12.04
OpenERP Version 7.0-20130726-231403
---------------------------------------------

Steps to reporuce the issue -

New Instance

Add two internal locations under 'Physical Locations / Your Company / Stock' with defaults
Physical Locations / Your Company / Stock / Finished Goods
Physical Locations / Your Company / Stock / Raw Materials

Add a stock-able product A with the parameters below -
Procurement Method: Make to Stock
Supply Method: Manufacture
Push Flow: from stock to Finished Goods, Automatic No Step Added

Add another stock-able product B with the parameters below -
Procurement Method: Make to Stock
Supply Method: buy
Push Flow: from stock to Raw Materials, Automatic No Step Added

Define a bom A:B = 1:1

Enter and confirm a sales order of 100psc of A product and then run the scheduler.

A manufacturing order and a purchase order were generated.

Receive the purchase order of B products into warehouse

B product's stock by location looks like this -

Physical Locations / Your Company / Stock: 100
Physical Locations / Your Company / Stock / Raw Materials: 200
Partner Location / Suppliers: -100

Produce A to finish the MO

A product's stock by location looks like this -

Physical Locations / Your Company / Stock: 100
Physical Locations / Your Company / Stock / Finished Goods: 200
Virtual Location / Production: - 100

While checking A product's stock moves, we found two moves
Virtual Location / Production --> Physical Locations / Your Company / Stock / Finished Goods: 100
Physical Locations / Your Company / Stock --> Physical Locations / Your Company / Stock / Finished Goods: 100

It's obvious that the 2nd move is unnecessary.

Tags: maintenance
description: updated
description: updated
description: updated
description: updated
Changed in openobject-addons:
assignee: nobody → OpenERP Publisher's Warranty Team (openerp-opw)
tags: added: maintenance
Revision history for this message
Oliver Yuan (oliver-yuan) wrote :

Any progress?

Revision history for this message
Oliver Yuan (oliver-yuan) wrote :

Same issue happened to a buy item with 'make to stock' and push rule defined. See the pic

Revision history for this message
Oliver Yuan (oliver-yuan) wrote :
Revision history for this message
Stephan Keller (r-skeller) wrote :

We are seeing this problem as well for a customer that has OpenERP Publisher's Warranty.
It is related to https://bugs.launchpad.net/openobject-addons/+bug/1094400 that bug was deemed a replication of 812678 that is "fixed", but note that it was fixed for v6, and somehow it is back in v7.0.

Revision history for this message
Stephan Keller (r-skeller) wrote :

For those that need this to be fixed right away, OPW Team provided a patch for one of our customers (thanks Dharti Ratani): https://code.launchpad.net/~openerp-dev/openobject-addons/7.0-opw-601201-dhr
We tested it today and it seems to work.

Revision history for this message
Oliver Yuan (oliver-yuan) wrote :

Thank you so much, Stephan. We'll test it right now.

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.