Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
6700 Представления

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 ?

Аватар
Отменить
Лучший ответ

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

Аватар
Отменить
Related Posts Ответы Просмотры Активность
2
мар. 15
17277
1
янв. 19
3531
2
дек. 24
4425
1
нояб. 24
3200
2
апр. 23
18226