Skip to Content
Menu
This question has been flagged
1 Odpoveď
3197 Zobrazenia

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
Zrušiť
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
Zrušiť
Autor

i want to add new field to all models automatically

just like the MAGIC_COLUMNS

But without modifying the ORM itself

Related Posts Replies Zobrazenia Aktivita
0
aug 24
1223
1
júl 24
2032
1
mar 22
4822
0
mar 21
1993
0
máj 20
2413