Hello Everyone my function is:
def _get_values(self, cr, uid, context=None):
for i in range(0,21): k=str(i) j=(k,k) l.append(j) return l
I am using that function to print a list(0 to 20) in a selection field. But Zero is not considered in the list, it starts from 1 to 20. Please give me the solution.
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 1/22/14, 8:38 AM|
|Seen: 440 times|
|Last updated: 3/16/15, 8:10 AM|