Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
3164 Vizualizări

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

Imagine profil
Abandonează
Cel mai bun răspuns

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 ?

Imagine profil
Abandonează
Autor

i want to add new field to all models automatically

just like the MAGIC_COLUMNS

But without modifying the ORM itself

Related Posts Răspunsuri Vizualizări Activitate
0
aug. 24
1203
1
iul. 24
2014
1
mar. 22
4793
0
mar. 21
1976
0
mai 20
2399