Skip to Content
Menu
This question has been flagged
1 Atsakyti
3377 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
1379
1
liep. 24
2280
1
kov. 22
5048
0
kov. 21
2148
0
geg. 20
2577