跳至内容
菜单
此问题已终结
1 回复
3173 查看

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
1205
1
7月 24
2016
1
3月 22
4797
0
3月 21
1980
0
5月 20
2400