Commit a9c2dd7f authored by Jean-Paul Smets's avatar Jean-Paul Smets

location is now reset when 'retour de coupe'


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@289 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5f68004d
...@@ -70,6 +70,9 @@ try : ...@@ -70,6 +70,9 @@ try :
id=new_id) id=new_id)
item[new_id].flushActivity(invoke=1) item[new_id].flushActivity(invoke=1)
# reset location on returned item
item.edit(location='')
# append new_id to new_aggregate_item_id_list and build relation with movement # append new_id to new_aggregate_item_id_list and build relation with movement
new_aggregated_item_id_list.append(new_id) new_aggregated_item_id_list.append(new_id)
if movement_list[0].aq_parent.getPortalType() in ('Movement MP Line', 'Movement PF Line') or movement_list[0].getPortalType() in ('Movement MP Line', 'Movement PF Line') : if movement_list[0].aq_parent.getPortalType() in ('Movement MP Line', 'Movement PF Line') or movement_list[0].getPortalType() in ('Movement MP Line', 'Movement PF Line') :
...@@ -80,7 +83,7 @@ try : ...@@ -80,7 +83,7 @@ try :
else : else :
error_item_list.append(id_and_weight_list[i*2]+'(conversion)') error_item_list.append(id_and_weight_list[i*2]+'(conversion)')
else : else :
error_item_list.append(id_and_weight_list[i*2]+'(non sortie)') error_item_list.append(id_and_weight_list[i*2]+'(non sortie ou plusieurs sorties)')
else : else :
error_item_list.append(id_and_weight_list[i*2]+'(quantit)') error_item_list.append(id_and_weight_list[i*2]+'(quantit)')
else : else :
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment