Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
3207 Näkymät

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
Hylkää
Paras vastaus

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
Hylkää
Tekijä

i want to add new field to all models automatically

just like the MAGIC_COLUMNS

But without modifying the ORM itself

Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
0
elok. 24
1234
1
heinäk. 24
2055
1
maalisk. 22
4839
0
maalisk. 21
2009
0
toukok. 20
2429