Why i would use filter instead of domain...If possible please let me help to know details.Thanks in advance
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 Priyanka,
Domain is used in Odoo to select records from a Model (database table) and filters allow selection of records.
Refer:How To Add Filters And Group By Options In Odoo Search View || Odoo 15 Development Tutorials
https://www.odoo.com/forum/help-1/what-is-diff-between-domain-domain-filter-and-attr-21145
https://www.odoo.com/forum/help-1/explaination-of-odoo-domain-filter-with-simple-example-187731
Hope this will help you
Thank you
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
Nov 24
|
272 | ||
|
1
Oct 24
|
335 | ||
|
4
Oct 24
|
326 | ||
Connect Odoo with unopim
Solved
|
|
2
Oct 24
|
362 | |
|
2
Dec 24
|
676 |
Say for example
requisition.purchase_ids.filtered(lambda x: x.state in ['draft', 'sent'])
Here, i would use domain.So what's the basic difference of using domain or filter.