Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
6684 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
17234
1
ene 19
3507
2
dic 24
4401
1
nov 24
3181
2
abr 23
18188