跳至內容
選單
此問題已被標幟
1 回覆
3178 瀏覽次數

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
8月 24
1206
1
7月 24
2019
1
3月 22
4806
0
3月 21
1984
0
5月 20
2403