Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
6579 Visualizzazioni

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
Abbandona
Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
2
mar 15
17118
1
gen 19
3402
2
dic 24
4229
1
nov 24
2957
2
apr 23
17867