Domain is not working in the search field.
Bug #891966 reported by
Vivek poddar
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Web Client |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I have to m2o fields in the search form :
1)main_id
2)sub_id
and when i apply domain like <field name="sub_id" domain=
To post a comment you must log in.
Hello Vivek,
We have not implemented this feature in both client Because field in search view already working like domain.
If we create a field in search view, It fire a search query. So It will create a domain like domain= "[('field' ,'like' ,'value' ]"
That's why If we put a another domain at field that doesn't make sense..:-)
You can use a search_default for this type of issue or you can pass a context, then it will works.
So this is not a bug and we can not consider this for implementation.
Currently I am closing this issue, If you provide us proper use case for it and It show us this is needed then you can reopen this.
Thanks for reporting!