set production lot on scheduled products on production orders
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.
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.