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

how to add new magic columns to all models?

i want to add new field to all models automatically, just like the MAGIC_COLUMNS.

But without modifying the ORM itself

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

LOG_ACCESS_COLUMNS and MAGIC_COLUMNS added to all models automatically by ORM 
https://github.com/odoo/odoo/blob/13.0/odoo/models.py#L241
can you explain bit more what do you want to achieve ?

Аватар
Отменить
Автор

i want to add new field to all models automatically

just like the MAGIC_COLUMNS

But without modifying the ORM itself

Related Posts Ответы Просмотры Активность
0
авг. 24
1249
1
июл. 24
2082
1
мар. 22
4866
0
мар. 21
2030
0
мая 20
2439