65
65
for obj in picking_obj.browse(cr, uid, picking_ids, context=context):
66
66
# purchase order line to re-source
69
70
obj.write({'change_reason': change_reason}, context=context)
71
72
for move in obj.move_lines:
74
78
# if full cancel (no resource), we updated corresponding out and correct po state
75
79
if cancel_type == 'update_out':
76
80
picking_obj.cancel_and_update_out(cr, uid, [obj.id], context=context)
78
83
pol_obj.write(cr, uid, pol_ids, {'has_to_be_resourced': True}, context=context)
79
84
pol_obj.cancel_sol(cr, uid, pol_ids, context=context)