Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
3333 Visualizzazioni

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
Abbandona
Risposta migliore

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
Abbandona
Autore

i want to add new field to all models automatically

just like the MAGIC_COLUMNS

But without modifying the ORM itself

Post correlati Risposte Visualizzazioni Attività
0
ago 24
1330
1
lug 24
2227
1
mar 22
4978
0
mar 21
2119
0
mag 20
2516