← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 691012] Re: [trunk][mrp] bugfix on consuming materials introduced two new bugs

 

Hi Jas,

Thanks for fast response! You are true in that the first problem is
fixed now. But the second problem still exists!

Namely that the consume method still generates totally new Lots for the consumed products. So the system does not consumes those materials what are physically consumed.
Don't think of a machine production company, where there are no Lots. It doesn't matter which screw is consumed. But think of a Food manufacturing company, where you don't think of items, but batches (LOTs) of items. In such a company You don't think of products, but batches of products. At least for two reasons:
1. Food has expiration date.
2. You have to ensure traceability 

The workflow is as follows:
1. The user creates a new Manufacturing Order 
2. The user sets the intended Lots to consume on the Internal Move lines (Picking list) For example Lot 0015 and Lot 0021. 
3. The warehouse man bring those materials to the Work Center location (for example 5 pce from Lot 0015 and 3 pce from Lot 0021)
4. physically they are consumed for the production (Lot 0015 and Lot 0021)
5. OpenERP does not consume those materials which was physically consumed (Lot 0015 and 0021), but the Consume method creates totally new Lots to consume. (Lets say Lot 0031 and 0032, but there are no materials with those Lots in stock, and even the physically consumed materials were from other Lots). 

This way OpenERP is unusable for those production companies where LOT
management is necessary (food, pharmacy, chemical industry).

So please change the behavior to one which has some sense. OpenERP must
reflect the real stock movements. The consume method should not generate
new LOTs for the Consumed Products but should use the same LOTs as it
uses in the internal moves.

I hope I was clear enough!


** Changed in: openobject-addons
       Status: Fix Released => New

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/691012

Title:
  [trunk][mrp] bugfix on consuming materials introduced two new bugs

Status in OpenObject Addons Modules:
  New

Bug description:
  I've committed the bugreport #669210 which was fixed a month ago.

I've just checked this functionality recently since it has been fixed. I found that this patch solved the reported problem but introduced two new ones.

The new problems are as follows (in the Manufacturing Order form):

1. After consuming the raw materials they appear in the right side list doubled. (Every item is displayed twice in Consumed Products). Initially the duplicated lines show only a quantity of 0 but after double clicking on any line the duplicates will be shown. 

2. A new LOT is generated for each consumed raw material after invoking consume. So the system wants to consume materials from such LOTs where there is 0 quantity in stock. These new LOTs will have a negative stock quantity and these LOTs are used for nothing. At the same time stock quantities in the work center locations keep increasing because the user sets the right LOTs on the Internal Moves lines but the system doesn't consume raw materials from these LOTs. 

The mechanism mentioned in the second problem should be changed so that Production LOT should not be generated for the Consumed Products but should the LOT numbers copied from the Internal Move lines (Picking List) beforehand. This way the system would work as intended. 

I've attached a screenshot to illustrate the first problem.





References