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

Hi,

I am working with Odoo Web Enterprise 17.0+e.

I made a scheduled action in Settings > Technical > Automation to update value of a field, it is not working automatically as expected but when I click "Run Manually" it works successfully.

Is there something wrong with my scheduled action?

I attached the settings and code below.

Any help will be appreciated. Thanks!

아바타
취소
베스트 답변

Hi Zulsani:

It's probably a timezone issue. Your scheduled action seems to be configured to run at midnight Indonesia time. This translates to 5pm on the previous day in UTC time. The value of "today" will be the previous day when the scheduled action runs.

아바타
취소
작성자

I changed to 10am Indonesia time and it works, thank you so much!

베스트 답변

Thank you.

아바타
취소
베스트 답변

Hello

I don't see any problem in your configuration.

You can debug your automation if it running or not by adding this line:

log('My automation is work')
today = datetime.date.today()
...

Another option just try to reduce the interval from 1 days to 1 hour or lower, to see if your code is working.

Thank you

아바타
취소
관련 게시물 답글 화면 활동
1
2월 25
2134
0
11월 24
1213
0
7월 24
1033
1
7월 25
490
0
11월 24
1220