Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
3163 Weergaven

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
Annuleer
Beste antwoord

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
Annuleer
Auteur

i want to add new field to all models automatically

just like the MAGIC_COLUMNS

But without modifying the ORM itself

Gerelateerde posts Antwoorden Weergaven Activiteit
0
aug. 24
1203
1
jul. 24
2014
1
mrt. 22
4793
0
mrt. 21
1976
0
mei 20
2399