コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
3122 ビュー

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
1158
1
7月 24
1937
1
3月 22
4748
0
3月 21
1915
0
5月 20
2368