You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
810 B
21 lines
810 B
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<data noupdate="1">
|
|
<!-- <data> -->
|
|
|
|
<record model="ir.cron" id="cron_close_expired_surveys">
|
|
<field name="name">Close expired surveys</field>
|
|
<field name="model_id" ref="survey.model_survey_survey"/>
|
|
<field name="state">code</field>
|
|
<field name="code">model.with_context(cron=True).cron_close_deadline_survey()</field>
|
|
<field name="active" eval="True"/>
|
|
<field name="user_id" ref="base.user_root"/>
|
|
<field name="interval_number">1</field>
|
|
<field name="interval_type">days</field>
|
|
<field name="nextcall" eval="(datetime.today() + relativedelta(days=1)).strftime('%Y-%m-%d 00:08:00')"/>
|
|
<field name="numbercall">-1</field>
|
|
<field name="doall" eval="False"/>
|
|
</record>
|
|
|
|
</data>
|
|
</odoo>
|