Odoo Help


How to update dynamic selection list by onchange function ?

on 10/15/16, 8:06 AM 1,281 views


if the default list is [('1','1'),('2','2'),('3','3')]  when onchnage execute 1st time the list will be updated to

list [('4','4'),('5','5'),('6','6')]

and then next will be [('7','7'),('8','8'),('9','9'),('0','0')]  like this.


Axel Mendoza

--Axel Mendoza--
| 7 8 8
Camaguey, Cuba
--Axel Mendoza--

DevOps - Full stack - Software Architect - Developer - Technology Integrator

I could help you to develop anything and solve complex problems based on technologies, integrations and tricky stuffs mostly in Python with OpenERP/Odoo, Zato, Django and many others frameworks programming languages and technologies.

I offers consulting services to anyone with an unanswered questions or needs for customizations. Think about it, maybe it's better to have an expert to solve your issues and projects than having a full-time employee trying to understand what to do and how

Reach me at aekroft@gmail.com

Axel Mendoza
On 10/16/16, 8:31 PM

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

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 10/15/16, 8:06 AM
Seen: 1281 times
Last updated: 10/16/16, 8:31 PM