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
- Contabilidad
- Inventario
- PoS
- Project
- MRP
Se marcó esta pregunta
1
Responder
2660
Vistas
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
¿Le interesa esta conversación? ¡Participe en ella!
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
RegistrarsePublicaciones relacionadas | Respuestas | Vistas | Actividad | |
---|---|---|---|---|
|
1
ene 25
|
1785 | ||
|
2
sept 22
|
9520 | ||
|
2
abr 22
|
4542 | ||
|
0
jul 21
|
7214 | ||
|
1
mar 21
|
4937 |