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

I'm trying to see if post_init_hook is possible for creation of ir.cron / Scheduled Action. If it is possible, how to create ir.cron / Scheduled Action in python? Thanks!

아바타
취소

Do you want to call your function in cron action?

작성자

@Manish Kumar Bohra: Yes

베스트 답변

Look into this: https://www.odoo.yenthevg.com/creating-automated-actions-in-odoo/

아바타
취소
베스트 답변

Hello, 

You can move to Schedule Actions --> Select your cron 

Select Model --> sale.order(For Eg.)

Select Action To Do --> Execute Python Code

Below show a page (Python Code)

where you call your method like this model.method_name()

Thanks

아바타
취소
관련 게시물 답글 화면 활동
3
10월 24
12156
1
3월 23
5793
2
12월 22
3330
1
3월 21
4038
1
6월 20
4465