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

Hi all,
I have a related field, and lot of data s with the field. Now i need to remove the related attribute from the field, means now i need to use the field as a normal field, but without losing the data. Is that possible ?
Note : It is a Many2one field.
Any suggestions ?

Avatar
Cancelar
Melhor resposta

Hi,

You can do the above by re-writing the field and set the related attribute to '' (related='').

Eg:

field_name = fields.Many2one('your_relation', related='')

Hope it helps

Avatar
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
2
mar. 15
17536
1
jan. 19
3788
2
dez. 24
4746
1
nov. 24
3557
2
abr. 23
18843