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.

64 lines
2.9 KiB

  1. <odoo>
  2. <data noupdate="1">
  3. <record id="ir_cron_update_today" model="ir.cron">
  4. <field name="name">Update Cooperatoor status base on the date</field>
  5. <field name="interval_number">24</field>
  6. <field name="interval_type">hours</field>
  7. <field name="numbercall">-1</field>
  8. <field name="doall" eval="False" />
  9. <field name="model">cooperative.status</field>
  10. <field name="function">_set_today</field>
  11. <field name="args">()</field>
  12. </record>
  13. <record id="ir_cron_generate_next_planning" model="ir.cron">
  14. <field name="name">Generate Next Planning</field>
  15. <field name="interval_number">1</field>
  16. <field name="interval_type">weeks</field>
  17. <field name="numbercall">-1</field>
  18. <field name="doall" eval="False" />
  19. <field name="model">beesdoo.shift.planning</field>
  20. <field name="function">_generate_next_planning</field>
  21. <field name="args">()</field>
  22. <field name="active" eval="False" />
  23. </record>
  24. <record id="ir_cron_generate_attendance_sheet" model="ir.cron">
  25. <field name="name">Generate Attendance Sheet</field>
  26. <field name="interval_number">20</field>
  27. <field name="interval_type">minutes</field>
  28. <field name="numbercall">-1</field>
  29. <field name="doall" eval="False" />
  30. <field name="model">beesdoo.shift.sheet</field>
  31. <field name="function">_generate_attendance_sheet</field>
  32. <field name="args">()</field>
  33. </record>
  34. <record id="ir_cron_compute_shift_counter" model="ir.cron">
  35. <field name="name">Compute Shift Counter</field>
  36. <field name="interval_number">4</field>
  37. <field name="interval_type">hours</field>
  38. <field name="numbercall">-1</field>
  39. <field name="doall" eval="True" />
  40. <field name="model">cooperative.status</field>
  41. <field name="function">_cron_compute_counter_irregular</field>
  42. <field name="args">()</field>
  43. <field name="active" eval="False" />
  44. </record>
  45. <record id="ir_cron_send_weekly_emails" model="ir.cron">
  46. <field name="name">Send weekly shift summary</field>
  47. <field name="interval_number">7</field>
  48. <field name="interval_type">days</field>
  49. <field name="numbercall">-1</field>
  50. <field name="doall" eval="True" />
  51. <field name="nextcall"
  52. eval="str(datetime.utcnow() + timedelta((6-datetime.utcnow().weekday()) % 7 ))"
  53. />
  54. <field name="model">beesdoo.shift.shift</field>
  55. <field name="function">_cron_send_weekly_emails</field>
  56. <field name="args">()</field>
  57. <field name="active" eval="False" />
  58. </record>
  59. </data>
  60. </odoo>