Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
6121 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
10584
1
mai. 15
22387
1
fev. 24
2453
0
jul. 24
3654
2
dez. 22
15341