Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
I have try to get element of list using index . I have get first one element of list but how to get other element one by one or respectively .
My python code below :
for search_val in stage_obj:
status_list.sort()for ress in status_list:
self.workflow_stages = ress
length = len(status_list)
for index, item in enumerate(status_list):
if index < length:
next_index = index + 1
self.workflow_stages = index
In your code, you should replace the break statement by continue statement.
break statement in your else condition breaking the whole loop and you are not able to get the next element from the list.
Sudhir Arya ERP Harbor Consulting Services skype: email@example.com website: http://www.erpharbor.com
About This Community
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 1/16/18, 1:26 AM|
|Seen: 673 times|
|Last updated: 10/11/18, 1:25 PM|