Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
6020 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
10424
1
mai. 15
22230
1
fev. 24
2277
0
jul. 24
3444
2
dez. 22
15176