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 ?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Бухгалтерия
- Склад
- PoS
- Проекты
- MRP
Этот вопрос был отмечен
1
Ответить
7464
Представления
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
Не оставайтесь в стороне – присоединяйтесь к обсуждению!
Создайте аккаунт сегодня, чтобы получить доступ к эксклюзивным функциям и стать частью нашего замечательного сообщества!
Регистрация| Похожие посты | Ответы | Просмотры | Активность | |
|---|---|---|---|---|
|
|
2
мар. 15
|
18050 | ||
|
|
1
янв. 19
|
4247 | ||
|
|
2
дек. 24
|
5236 | ||
|
|
1
нояб. 25
|
4096 | ||
|
|
2
апр. 23
|
19895 |