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

I want to create scheduled action which always active and it should always work in every 15 mins.


頭像
捨棄
最佳答案

Hi,


To create a scheduled action that runs every 15 minutes and is always active, you should modify the code as follows

<?xmlversion="1.0" encoding="UTF-8" ?>

<odoo>

    <data>

        <recordid="ir_cron_time_token" model="ir.cron">

<fieldname="name">Timer15mins</field>

            <fieldname="model_id" ref="model_your_module_name"/>

<fieldname="state">code</field>

<fieldname="code">model._test()</field>

<fieldname="interval_number">15</field>

<fieldname="interval_type">minutes</field>

<fieldname="numbercall">-1</field>

<fieldname="active">True</field>

        </record>

    </data>

</odoo>



Hope it helps


頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
12月 21
14076
0
8月 25
115
1
8月 25
656
0
8月 25
385
0
7月 25
1490