콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
3 답글
3090 화면
As I can intercept all the create of the system, 
that is to say a module that allows me to do something whenever a creat is executed


아바타
취소

You could do a module that does not have to play the core of odoo for that, that is, if there is any way to inherit model to affect all the system's create.


베스트 답변

You can also define an automated action for this. Activate developer mode and go to Settings > Technical > Automated Actions (under Automation). You can define an automated action with a Trigger Condition of On Creation for any model in the system. One of the actions that can be performed (Action To Do) is Execute Python Code. This feature comes very handy for simple requirements.

아바타
취소
베스트 답변

you can intercept all the create at def _create of models.py
https://github.com/odoo/odoo/blob/12.0/odoo/models.py#L3618

아바타
취소
관련 게시물 답글 화면 활동
0
8월 24
1543
0
4월 24
2352
1
7월 24
2468
1
3월 22
5331
1
6월 21
3564