if the default list is [('1','1'),('2','2'),('3','3')] when onchnage execute 1st time the list will be updated to
and then next will be [('7','7'),('8','8'),('9','9'),('0','0')] like this.
You can't do it with a selection field, onchanges for selection fields and for the rest of the fields it will change the value of the field, not the set of values that can be selected on the value, for others fields like relational ones(o2m, m2o, m2m) you could set a domain to be apply for the field to change the resulting set of values to be selected by returning the domain for the field on the onchange, but the selection field is not the case as it's not a relational field and it will not be affected by domains
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: 10/15/16, 8:06 AM|
|Seen: 163 times|
|Last updated: 10/16/16, 8:31 PM|