Odoo Help


This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


How to change value of duration in scheduled Actions?

Atchuthan - Technical Consultant, Sodexis Inc
on 10/10/13, 6:08 AM 1,304 views

Hi friendz,

I need to change the duration value from 4 to 12 hours at Scheduled Actions window of "Check Access Rule" from my custom module "taskalert".

My requirement is:

I need to change duration value and use server action and automated action to send a notification to the user regarding the task expiry as an alert.

For this to work, I need to change duration from 4 hours to 12 hours scheduling.

I tried to use this method:

       <record id="ir_cron_crm_action" model="ir.cron">
            <field name="name">Check Action Rules</field>
            <field name="interval_number">12</field>
            <field name="interval_type">hours</field>
            <field name="numbercall">-1</field>
            <field eval="False" name="doall"/>
            <field eval="'base.action.rule'" name="model"/>
            <field eval="'_check'" name="function"/>
            <field eval="'()'" name="args"/>

Thanks & Regards,




| 4 5 8
Tétouan, Morocco

For more informations about IBS, please visit our website at www.ibs-na.com.

For a specific questions, collaboration or help, please send us an email to support@ibs-na.com

On 10/10/13, 1:26 PM

Go to Settings > Technical > Scheduler > Scheduled Actions, find your action and then change Interval Number to 12 and Interval Unit to Hours

To do it via a module ( XML file ), just update the scheduled action record:

<record id="your_scheduled_action_id" mode="ir.cron">
    <field name="interval_type">hours</field>
    <field name="interval_number">12</field>

yeah, I know how to manually change. But I need to change this settings when I install my custom module

Atchuthan - Technical Consultant, Sodexis Inc
on 10/11/13, 2:39 AM

Ah yes, I updated my answer.

on 10/11/13, 8:47 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)


Asked: 10/10/13, 6:08 AM
Seen: 1304 times
Last updated: 3/31/15, 5:36 PM