set production lot on scheduled products on production orders

Bug #552274 reported by Akshay Jain
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Invalid
Undecided
Unassigned

Bug Description

I am facing following problem with production lots:
There are 2 Products: A, B
1 BOM defined as: to produce 1 A = 0.34 B needed
Next a purchase order is generated for purchasing 100 B. At the time of packing a production lot (P1) is assigned to product A and picking is done. At this time the stock shows 100 B as real stock.

Next a manufacturing order is made to produce 100 A with BOM as stated above. After confirming production order Consumed products shows 34 B is needed and status is "Waiting". Next I edit this stock move and set production lot as P1 (same as that of purchase order move).

Now when i click "Force Reservation" then i get error that production lot for this product is not set whereas i have already set the production lot. Please guide me what i m doing wrong here.

Revision history for this message
Akshay Jain (akshay-jain-7983) wrote :

Reason for this problem is that when production order is confirmed then an internal stock move is also generated to take raw material from stock to production location.

In order to get around this I believe that users should be allowed to set production lot on scheduled products itself. It makes more sense to me that production lots are set in planning phase production order itself. Therefore I coded a small module for this purpose and attached to this bug.

Revision history for this message
JMA(Open ERP) (jma-openerp) wrote :

Hello Akshay Jain,

You seem to have configuration issues.

I cannot understand that, once you have created a purchase order for product B then why do you assign production lot to the product A in its packing?
It makes no sense. You directly create a purchase order for product A itself rather than assigning in the packing for product B.

When you create the manufacturing order for product A(qty:100) which has been given a Bom 1A = 0.34B so the move line would have product B(qty:34) which goes to waiting goods state to check whether the quantity is available or not. If its not available the force reservation forcefully does that for you.

The warning comes only because you have wrongly assigned the production lot for the products.

The behaviour is very normal. Things work pretty well in our case.
The only problem which seems is you assigning production lot(P1) for product A in product B's packing is strange.

I hope this makes things clear.
Let us know if you have any further queries.

Thank you.

Revision history for this message
Akshay Jain (akshay-jain-7983) wrote :

Hello JMA,

Thats a pretty late response. I posted this question in March and now its August.

That was a typo above. I had set production lot to B only. My point was that users should be given flexibility to set production orders on scheduled products itself as it makes sense to make a decision regarding which lot of products to consume during planning phase itself.

And for that I coded and attached a small module, which ofcourse is not production quality and can be improved like warning users if production lot has enough material or not and so on. But mostly setting production lot on scheduled products saves users from one extra step which in a client-server application is a big deal.

I hope I am clear now.

Thank You.

Revision history for this message
JMA(Open ERP) (jma-openerp) wrote :

Hello Akshay,

The behaviour is very normal. Importantly its more generic.
Please open the bug if you have more accurate information.

Thanks.

Changed in openobject-addons:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

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