Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
6315 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
16891
1
ene 19
3141
2
dic 24
3817
1
nov 24
2604
2
abr 23
17057