What is the perfect way to show only some rows in a one2many filed
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project
- MRP
This question has been flagged
1
Reply
2377
Views
HI Jacky,
you can use domain to filter the one2many.
Like
expense_ids = fields.One2many('hr.expense', 'sale_order_id', string='Expenses', domain=[('state', '=', 'done')], readonly=True, copy=False)
Refer this question, you get more ideas:
https://www.odoo.com/forum/help-1/question/how-to-write-this-domain-for-a-one2many-field-on-a-view-114226
regards, Nikhil
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 | |
---|---|---|---|---|
|
1
Jan 25
|
759 | ||
|
2
Sep 22
|
8507 | ||
|
2
Apr 22
|
3397 | ||
|
0
Jul 21
|
6202 | ||
|
1
Mar 21
|
4230 |