Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
5961 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
10353
1
mai. 15
22177
1
fev. 24
2253
0
jul. 24
3386
2
dez. 22
15142