Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
6652 Vistas

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
Descartar
Mejor respuesta

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
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
2
mar 15
17203
1
ene 19
3481
2
dic 24
4378
1
nov 24
3150
2
abr 23
18129