Production : done moves should not be re-considered while completing production order

Bug #677437 reported by Jay Vora (Serpent Consulting Services)
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Status tracked in Trunk
5.0
Fix Released
Medium
Jay Vora (Serpent Consulting Services)
Trunk
Fix Released
Medium
OpenERP R&D Addons Team 2

Bug Description

OpenERP VERSION : 5.0.15
OS information : UBUNTU 10.04

Here is my case.

I have three products : ProdA, LabelAtoB, ProdB
I have à BOM which is described with : 1 ProdA + 1 LabelAtoB = 1 ProdB

1/ I create a production order with this bom.
2/ When I confirm the production order, an internal move is created. I
can go to this internal move to « Force Availability »
3/ I go back to the production order and by editing the line
PROD:MO/XXX I hit "make parcel » then « Save » I do the same for the
other line.
4/ I can check the report Financial Management/Entries Encoding /
Entries Encoding by line. Every thing seems OK. (Stock Journal)
5/ Back to the prod-order, « Start Production »
6/ I edit the finished products line PROD:MO/XXXX in the « Finished
Products » tab, and I hit « make parcel » then « save »
7/ Then I choose « Production Done »
8/ I check the report Financial....Entries Encoding by line... All the
previous entries are duplicated.

Tags: maintenance

Related branches

Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Here is the patch.
Please review the same.
Thanks.

tags: added: maintenance
summary: - Production : done moves should not be re-considered while compleiting
+ Production : done moves should not be re-considered while completing
production order
Revision history for this message
Olivier Dony (Odoo) (odo-openerp) wrote :

Important note: the above-described use case is not the correct/usual way of executing a production order!
The manufacturing order will itself take care of processing the consumed raw materials moves, as well as the outgoing final products move. You should not do that manually, really, even if after this fix the system will handle it more gracefully.

PS: updated patch coming soon from Jay, with improved safety check in stock/stock.py

Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Here is the improved version of the patch.
Thanks.

Revision history for this message
Edouard Dognin (edouard-dognin) wrote :

I do not understand your comment Olivier.

What will the "manufacturing order do » ?
Why I should not dot manual things ? Why is there a button if I should not do this manually ?

Thanks for your help.

Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Edouard,

Olivier means to say that you never need to complete(make parcel) the moves manually.
The Production order(with the help of scheduler and workflow) handles it effectively and automatically.

It has been 2885 <email address hidden>.
Thanks for the response.

Revision history for this message
Kirti Savalia(OpenERP) (ksa-openerp) wrote :

Hello,
 it has been fixed in branch lp:~openerp-dev/openobject-addons/ksa-addons2
 Revision ID: <email address hidden>
 Revision NO: 3880

 Thanks.

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.