İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
6670 Görünümler

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
Vazgeç
En İyi Yanıt

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
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
2
Mar 15
17206
1
Oca 19
3493
2
Ara 24
4386
1
Kas 24
3167
2
Nis 23
18147