[6.0] Incoming Shipment state suddenly change from available to done

Bug #1234492 reported by Yusnelly Huang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Expired
Undecided
Unassigned

Bug Description

Hi, friends can you please help me on this problem? or any of you have met this problem and have solved it?

Now i'm using openerp version 6.0 to develop a project. But i found a strange issue.
My incoming state with the reference no TempXXXXX suddenly changed from Available to "DONE" and this issue happened just on 2 record of my incoming shipment.
When i was go to check it, i found the incoming was auto generate from PO and have revised 1 time (i have created function of revised the PO), so i assumed the scenario for this issue is as the following:
1. The user created a PO and added an item to the PO.
2. The user has approved the PO and the Incoming Shipment has been generated with "Available" state.
3. The another user (lets call purchaser) found out that the item is wrong and revised the PO.
4. The purchaser removed the previous item and inserted the new one.
5. The PO has been approved once again but the state of the Incoming Shipment changed to "Done".

Note:
1. This is only an assumed scenario as this issue happened when the PO has been revised and the "Notes" written by the user (purchaser) stated that they revised the item code (means that they changed the item and added another new one).
2. I have try to duplicate this record and try it like the scenario that i have assumed, but i wasn't occur.

Thanks Before.

Changed in openobject-addons:
assignee: nobody → Yusnelly Huang (yusnelly-huang)
assignee: Yusnelly Huang (yusnelly-huang) → nobody
Revision history for this message
Amit Parik (amit-parik) wrote :

Hello Yusnelly,

Have you customize the code?because normally this is not possible.

I have make the video for your same scenario, Would you please check it and let us know where you faced the problem.

Thank you!

Revision history for this message
Amit Parik (amit-parik) wrote :
Changed in openobject-addons:
status: New → Incomplete
Revision history for this message
Yusnelly Huang (yusnelly-huang) wrote :

Hi Parik,

Thanks for your kindly reply.

i have look into your video, it seem didn't get any problem.

Actually i have inherrit to modified some code inside purchases module. But it seems strange, because from an thousand record of PO that generate the incoming, this error will appear just 3 times till now and it will be appear in different day and month.
I also have checked my code, but i can't found have any code that asked the system to change the state from available to done.
So, i go to the workflow to check the action and i found that in workflow stock.picking with name "Done" have asked the system to write the state of stock.picking become done and record the date of "date_done".

And from this action looks almost the same as the problems i faced.
" Only the stock.picking state was update to done, and the date_done was same with PO last modified date"
" the state of stock.move that related with this stock.picking still in available"
Ex.
TEMP2013030002 (state = Done)
item line inside this picking:

So, for temporary. i was go to this action to prevent it by do some code. But i'm not sure this problem was solved. So, i will be always maintain to see if have any issue occur again.

Revision history for this message
Yusnelly Huang (yusnelly-huang) wrote :

This is the Ex.
TEMP2013030002 (state = Done)
item line inside this picking:
1. item A 5 PCS (State=Available)
2. item B 6 PCS (State=Available)

Thanks Parik
:)

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for OpenERP Addons because there has been no activity for 60 days.]

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

Other bug subscribers

Bug attachments

Remote bug watches

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