Skip to Content
Menu
This question has been flagged
1 Atsakyti
3251 Rodiniai

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

Portretas
Atmesti
Best Answer

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 ?

Portretas
Atmesti
Autorius

i want to add new field to all models automatically

just like the MAGIC_COLUMNS

But without modifying the ORM itself

Related Posts Replies Rodiniai Veikla
0
rugp. 24
1258
1
liep. 24
2097
1
kov. 22
4868
0
kov. 21
2034
0
geg. 20
2444