Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
5802 Visualizações

Hello, I have Odoo8.

I have a model A which has a many2many field relation to model B. Is there any way to access to the many2many field from model B? Thanks!

Avatar
Cancelar
Melhor resposta

You create a similar many2many field in model B, which is based on the same relation object.

fields.many2many('other.object.name', 'relation object', 'actual.object.id', 'other.object.id', 'Field Name')

Avatar
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
2
set. 17
10191
1
mai. 15
22039
1
fev. 24
2131
0
jul. 24
3172
2
dez. 22
14924