Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
1961 Prikazi

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


Avatar
Opusti
Best Answer

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


Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
1
dec. 21
14112
0
avg. 25
15
1
avg. 25
248
1
avg. 25
678
0
avg. 25
409