Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
3801 มุมมอง

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

Related Posts ตอบกลับ มุมมอง กิจกรรม
0
ส.ค. 24
1801
1
ก.ค. 24
2780
1
มี.ค. 22
5692
0
มี.ค. 21
2512
0
พ.ค. 20
2928