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
Erstellen Sie heute ein Konto, um exklusive Funktionen zu nutzen und mit unserer tollen Community zu interagieren!
Registrieren
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.