تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
3177 أدوات العرض

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

الصورة الرمزية
إهمال
أفضل إجابة

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 ?

الصورة الرمزية
إهمال
الكاتب

i want to add new field to all models automatically

just like the MAGIC_COLUMNS

But without modifying the ORM itself

المنشورات ذات الصلة الردود أدوات العرض النشاط
0
أغسطس 24
1205
1
يوليو 24
2019
1
مارس 22
4806
0
مارس 21
1984
0
مايو 20
2402