Odoo Help


Domain filter to filter records based on states

on 5/15/13, 3:00 AM 2,434 views

hi, i have given domain filters based on draft states, and it is working. i have a requirement that other than draft state record should be visible if i search from the search bar


ClueLogics Technologies Pvt. Ltd.

--ClueLogics Technologies Pvt. Ltd.--
| 6 5 8
Delhi NCR, India
--ClueLogics Technologies Pvt. Ltd.--

 ClueLogics Technologies Pvt Ltd is a Software product and services provider. We are positioned to deliver robust, rapid and reliable Information Technology solutions that work. What we succeed upon is Technology and Technical Expertise. The industry review of ClueLogics has been commendable for the past years as most of its business comes from repeat orders by highly satisfied clients.

ClueLogics Technologies Pvt. Ltd.
On 5/15/13, 3:12 AM

Hi Mr. Maniganda

as you said you set domain and working fine , then all the records belong to other state will be displaying in search suppose if you set it on a many2one field then when you see search more option you will see all other state records there , then you can select one of them

in that field , your domain will be

<field name="myorder" domain="[('state','!=','draft')]"/>


i am not using any many2one field in my form how can i achieve this?

on 5/15/13, 3:28 AM

suppose you have an order , and you want to display orders(which are not in draft state) in another object modules called check.order put many2one field in check.order model and also this domain field , then you will see all order from check.order model's view when you will select a order

ClueLogics Technologies Pvt. Ltd.
on 5/15/13, 3:40 AM

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: 5/15/13, 3:00 AM
Seen: 2434 times
Last updated: 6/21/16, 4:42 AM