I want to show a list from job positions page that contains 3 items on the employee page.
Currently I tried with related field on odoo studio, works but only showing the first item of the list while I want all items from the list. What field should I use and how? Thanks!
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
1140
Vistas
You can use a One2many or Many2many field to display multiple items from a list on a page. Here’s a general process you can follow:
- Create a new field: In Odoo Studio, go to the model where you want to add the field (in your case, the Employee model). Click on “Add a Field” and select One2many or Many2many as the field type.
- Configure the field: You’ll need to specify the “Related Model” (in your case, the Job Positions model) and the “Relation Field” (the field in the related model that links to the current model).
- Add the field to the view: Once the field is created, you can add it to the form view of the Employee model. This will allow it to display data from the Job Positions model.
Remember, One2many and Many2many fields in Odoo are used to establish a relation between models where one record in a model can be related to multiple records in another model.
¿Le interesa esta conversación? ¡Participe en ella!
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
InscribirsePublicaciones relacionadas | Respuestas | Vistas | Actividad | |
---|---|---|---|---|
|
0
nov 23
|
1156 | ||
|
1
ago 25
|
3491 | ||
|
1
oct 24
|
1612 | ||
|
1
oct 24
|
1848 | ||
|
2
oct 24
|
2954 |