跳至內容
選單
此問題已被標幟
1 回覆
1944 瀏覽次數

I added a custom field to the sales order object which I want to be updated every 12 hours by requesting a website and getting a response. How can I set the timer for this code to update this field every 12 hours?

Thanks in advance.

頭像
捨棄
最佳答案

Hi,

For this you can set a cron job/scheduled action to trigger it. 

Set the execution period as every 12 Hours and execute the necessary python code using this cron job.

Thanks

頭像
捨棄
作者

thanks for your response. can you send me an example link or a part in odoo code that executed this behaviuor?

相關帖文 回覆 瀏覽次數 活動
3
1月 24
2720
0
2月 22
2341
1
11月 21
2419
0
9月 21
2494
2
8月 20
3371