Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
3161 Tampilan

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
Buang
Jawaban Terbai

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
Buang
Penulis

i want to add new field to all models automatically

just like the MAGIC_COLUMNS

But without modifying the ORM itself

Post Terkait Replies Tampilan Aktivitas
0
Agu 24
1202
1
Jul 24
2012
1
Mar 22
4791
0
Mar 21
1973
0
Mei 20
2398