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.
54 lines
2.4 KiB
54 lines
2.4 KiB
<odoo>
|
|
<data noupdate="1">
|
|
<record id="ir_cron_update_today" model="ir.cron">
|
|
<field name="name">Update Cooperatoor status base on the date</field>
|
|
<field name="interval_number">24</field>
|
|
<field name="interval_type">hours</field>
|
|
<field name="numbercall">-1</field>
|
|
<field name="doall" eval="False" />
|
|
<field name="model">cooperative.status</field>
|
|
<field name="function">_set_today</field>
|
|
<field name="args">()</field>
|
|
</record>
|
|
|
|
|
|
<record id="ir_cron_generate_next_planning" model="ir.cron">
|
|
<field name="name">Generate Next Planning</field>
|
|
<field name="interval_number">1</field>
|
|
<field name="interval_type">weeks</field>
|
|
<field name="numbercall">-1</field>
|
|
<field name="doall" eval="False" />
|
|
<field name="model">beesdoo.shift.planning</field>
|
|
<field name="function">_generate_next_planning</field>
|
|
<field name="args">()</field>
|
|
<field name="active" eval="False" />
|
|
</record>
|
|
|
|
<record id="ir_cron_compute_shift_counter" model="ir.cron">
|
|
<field name="name">Compute Shift Counter</field>
|
|
<field name="interval_number">4</field>
|
|
<field name="interval_type">hours</field>
|
|
<field name="numbercall">-1</field>
|
|
<field name="doall" eval="True" />
|
|
<field name="model">cooperative.status</field>
|
|
<field name="function">_cron_compute_counter_irregular</field>
|
|
<field name="args">()</field>
|
|
<field name="active" eval="False" />
|
|
</record>
|
|
|
|
<record id="ir_cron_send_weekly_emails" model="ir.cron">
|
|
<field name="name">Send weekly shift summary</field>
|
|
<field name="interval_number">7</field>
|
|
<field name="interval_type">days</field>
|
|
<field name="numbercall">-1</field>
|
|
<field name="doall" eval="False" />
|
|
<field name="nextcall"
|
|
eval="str(datetime.utcnow() + timedelta((6-datetime.utcnow().weekday()) % 7 ))"
|
|
/>
|
|
<field name="model">beesdoo.shift.shift</field>
|
|
<field name="function">_cron_send_weekly_emails</field>
|
|
<field name="args">()</field>
|
|
<field name="active" eval="False" />
|
|
</record>
|
|
</data>
|
|
</odoo>
|