I want to get a field to change its domain given a condition, this is not working for me, it duplicates the fields
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
I want to get a field to change its domain given a condition, this is not working for me, it duplicates the fields
Hi Pavel,
I am not sure how you did your implementation, but you can make the domain dynamic with onchange function, such as:
@api.onchange('type')
def onchange_type(self):
for rec in self: return {'domain': {'category_id': [('type', '=', rec.type)]}}
Or please try to share your code with us :)
Sincerely
Ivana from edoo.is
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up