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

good night,

what is the difference between a server action and a cron type action

Thank you,

아바타
취소
베스트 답변

Hi,

By using Server Action(ir.actions.server) we can create a quick and easy configuration some process which we require to call very often. Like ‘Execute Python Code’, ‘Create a new Record’, ‘Write on a Record’, etc. There is a "Create Contextual Action" button available in action form, it will create an entry in the More menu of the base model. This will allow to run them in mass mode easily through the interface from the list view.

If you want an action triggered automatically on a predefined frequency, you can use Scheduled Actions(ir.cron). This can be a simple call to the model’s method.

model.<method_name>()

If you want to trigger an action based on a trigger condition like 'On Creation', 'On Update', 'On Deletion', etc. you can use Automated Actions(base.automation).


Hope this helps.

아바타
취소