Skip to content Skip to sidebar Skip to footer

How To Retrive Values In Many2one Field As Selection Field?

How to retrieve values on Many2one field using OnChange ? the student should be registered in one standard and one group ... the standard have multi groups so i want that when i ch

Solution 1:

No need to write on change method for that, you can achieve this by apply domain to that field. Try following,

<field name="standard_id" widget="selection"/>
<field name="group_id" widget="selection" domain="[('standard_id','=',standard_id)]"/>

Post a Comment for "How To Retrive Values In Many2one Field As Selection Field?"