Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda

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
Buang
Jawaban Terbai

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
Buang
Post Terkait Replies Tampilan Aktivitas
2
Mar 15
16765
1
Jan 19
3017
2
Des 24
3668
1
Nov 24
2372
2
Apr 23
16606