Browse Source

[FIX] b_shift : fix cron jobs definition to fit version 12.0 requirements

pull/143/head
Elouan 5 years ago
committed by Elouan Le Bars
parent
commit
771dc7db2f
  1. 30
      beesdoo_shift/data/cron.xml

30
beesdoo_shift/data/cron.xml

@ -6,9 +6,8 @@
<field name="interval_type">hours</field> <field name="interval_type">hours</field>
<field name="numbercall">-1</field> <field name="numbercall">-1</field>
<field name="doall" eval="False" /> <field name="doall" eval="False" />
<field name="model">cooperative.status</field>
<field name="function">_set_today</field>
<field name="args">()</field>
<field name="model_id" ref="model_cooperative_status" />
<field name="code">model._set_today()</field>
</record> </record>
<record id="ir_cron_generate_next_planning" model="ir.cron"> <record id="ir_cron_generate_next_planning" model="ir.cron">
@ -17,9 +16,8 @@
<field name="interval_type">weeks</field> <field name="interval_type">weeks</field>
<field name="numbercall">-1</field> <field name="numbercall">-1</field>
<field name="doall" eval="False" /> <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="model_id" ref="model_beesdoo_shift_planning" />
<field name="code">model._generate_next_planning()</field>
<field name="active" eval="False" /> <field name="active" eval="False" />
</record> </record>
@ -29,9 +27,8 @@
<field name="interval_type">minutes</field> <field name="interval_type">minutes</field>
<field name="numbercall">-1</field> <field name="numbercall">-1</field>
<field name="doall" eval="False" /> <field name="doall" eval="False" />
<field name="model">beesdoo.shift.sheet</field>
<field name="function">_generate_attendance_sheet</field>
<field name="args">()</field>
<field name="model_id" ref="model_beesdoo_shift_sheet" />
<field name="code">model._generate_attendance_sheet()</field>
<field name="active" eval="False" /> <field name="active" eval="False" />
</record> </record>
@ -41,9 +38,8 @@
<field name="interval_type">hours</field> <field name="interval_type">hours</field>
<field name="numbercall">-1</field> <field name="numbercall">-1</field>
<field name="doall" eval="True" /> <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="model_id" ref="model_cooperative_status" />
<field name="code">model._cron_compute_counter_irregular()</field>
<field name="active" eval="False" /> <field name="active" eval="False" />
</record> </record>
@ -54,9 +50,8 @@
<field name="numbercall">-1</field> <field name="numbercall">-1</field>
<field name="doall" eval="False" /> <field name="doall" eval="False" />
<field name="nextcall" eval="(datetime.now()).strftime('%Y-%m-%d 00:00:10')"/> <field name="nextcall" eval="(datetime.now()).strftime('%Y-%m-%d 00:00:10')"/>
<field name="model">beesdoo.shift.sheet</field>
<field name="function">_cron_non_validated_sheets</field>
<field name="args">()</field>
<field name="model_id" ref="model_beesdoo_shift_sheet" />
<field name="code">model._cron_non_validated_sheets()</field>
<field name="active" eval="False" /> <field name="active" eval="False" />
</record> </record>
@ -69,9 +64,8 @@
<field name="nextcall" <field name="nextcall"
eval="str(datetime.utcnow() + timedelta((6-datetime.utcnow().weekday()) % 7 ))" 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="model_id" ref="model_beesdoo_shift_shift" />
<field name="code">_cron_send_weekly_emails()</field>
<field name="active" eval="False" /> <field name="active" eval="False" />
</record> </record>
</data> </data>

Loading…
Cancel
Save