Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
3160 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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 ?

Ảnh đại diện
Huỷ bỏ
Tác giả

i want to add new field to all models automatically

just like the MAGIC_COLUMNS

But without modifying the ORM itself

Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 8 24
1200
1
thg 7 24
2010
1
thg 3 22
4790
0
thg 3 21
1972
0
thg 5 20
2396