Skip to Content
मेन्यू
This question has been flagged

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
Discard
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
Discard
Related Posts Replies Views Activity
2
मार्च 15
17213
1
जन॰ 19
3497
2
दिस॰ 24
4393
1
नव॰ 24
3172
2
अप्रैल 23
18159