Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
3194 Prikazi

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
Opusti
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
Opusti
Avtor

i want to add new field to all models automatically

just like the MAGIC_COLUMNS

But without modifying the ORM itself

Related Posts Odgovori Prikazi Aktivnost
0
avg. 24
1218
1
jul. 24
2031
1
mar. 22
4821
0
mar. 21
1993
0
maj 20
2410