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
- Comptabilitat
- Inventari
- PoS
- Project
- MRP
This question has been flagged
1
Respondre
2630
Vistes
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!
Registrar-seRelated Posts | Respostes | Vistes | Activitat | |
---|---|---|---|---|
|
1
de gen. 25
|
1749 | ||
|
2
de set. 22
|
9461 | ||
|
2
d’abr. 22
|
4500 | ||
|
0
de jul. 21
|
7165 | ||
|
1
de març 21
|
4902 |