Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
3 ตอบกลับ
1269 มุมมอง

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

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ก.พ. 25
2038
0
พ.ย. 24
1182
0
ก.ค. 24
993
1
ก.ค. 25
411
0
พ.ย. 24
1196