Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
3175 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit
Autor

i want to add new field to all models automatically

just like the MAGIC_COLUMNS

But without modifying the ORM itself

Related Posts Odpovědi Zobrazení Aktivita
0
srp 24
1205
1
čvc 24
2017
1
bře 22
4803
0
bře 21
1983
0
kvě 20
2401