Skip to Content
Menu
This question has been flagged
1 Atsakyti
6672 Rodiniai

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 ?

Portretas
Atmesti
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

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
2
kov. 15
17207
1
saus. 19
3495
2
gruod. 24
4388
1
lapkr. 24
3167
2
bal. 23
18148