Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
5995 มุมมอง

Hello Everyone, 

I have to try to get a one by one value using index and update the stage in states but i have cross only first stage so can how to get next stage and respectively. 

my python for loop code below :

for res in status_list:    
print"res", res
self.workflow_stages = res
if res:
self.workflow_stages = res
for index, item in enumerate(status_list):
print "test::", index
index_init = index
print"index_init:::", index_init
next = index_init + 1
print "next", next
return True

Thanks in Advanced.

  

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
How to get element in list using index ? แก้ไขแล้ว
1
ก.ค. 19
8086
0
ก.ค. 19
1128
Domain in Many2many Field แก้ไขแล้ว
1
ม.ค. 22
28059
1
มิ.ย. 18
14752
1
มี.ค. 18
3813