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
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
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')]"/>
thanks
i am not using any many2one field in my form how can i achieve this?
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
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
2
Mar 24
|
571 | ||
|
0
Feb 24
|
1196 | ||
|
0
Jan 23
|
704 | ||
|
1
Nov 22
|
1760 | ||
|
0
Aug 22
|
1053 |