Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
6681 Prikazi

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
Opusti
Best Answer

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
Opusti
Related Posts Odgovori Prikazi Aktivnost
2
mar. 15
17218
1
jan. 19
3498
2
dec. 24
4398
1
nov. 24
3176
2
apr. 23
18170