How to get a specific field from a One2many relation ?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Financeiro
- Inventário
- PoS
- Project
- MRP
Esta pergunta foi sinalizada
3
Respostas
3670
Visualizações
i have 2 calss student and option, there is a field in student who is called option_ids many2many with the class option, in another view i have a selection of student, when i choose a student i want to display all his option in other field
Está gostando da discussão? Não fique apenas lendo, participe!
Crie uma conta hoje mesmo para aproveitar os recursos exclusivos e interagir com nossa incrível comunidade!
Inscreva-sePublicações relacionadas | Respostas | Visualizações | Atividade | |
---|---|---|---|---|
|
0
nov. 19
|
3104 | ||
|
2
abr. 19
|
2782 | ||
|
2
dez. 22
|
21592 | ||
|
2
fev. 20
|
3946 | ||
|
1
ago. 19
|
4215 |
you mean the specific fields value from one2many?
Hi,
if your O2M is fields_ids for example then your need to loop in order to get the field you want field_1:
I suppose you want to get value of a field that exists in O2M's model.
for my_field in self.field_ids:
print("field_1 Value for my_field is: %s") % my_field.field_1
Odoo Development Tips: https://old.reddit.com/r/learnopenerp/
Hope this will helps u in future...