Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
6889 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
2
bře 15
17434
1
led 19
3695
2
pro 24
4611
1
lis 24
3410
2
dub 23
18580