Skip to Content
Menú
This question has been flagged
1 Respondre
3220 Vistes

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

Avatar
Descartar
Best Answer

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 ?

Avatar
Descartar
Autor

i want to add new field to all models automatically

just like the MAGIC_COLUMNS

But without modifying the ORM itself

Related Posts Respostes Vistes Activitat
0
d’ag. 24
1237
1
de jul. 24
2070
1
de març 22
4844
0
de març 21
2012
0
de maig 20
2433