콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
3378 화면

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
1382
1
7월 24
2280
1
3월 22
5049
0
3월 21
2148
0
5월 20
2577