Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
6687 Переглядів

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
17237
1
січ. 19
3513
2
груд. 24
4403
1
лист. 24
3184
2
квіт. 23
18192