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.

78 lines
3.6 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. <field name="active" eval="False" />
  34. </record>
  35. <record id="ir_cron_compute_shift_counter" model="ir.cron">
  36. <field name="name">Compute Shift Counter</field>
  37. <field name="interval_number">4</field>
  38. <field name="interval_type">hours</field>
  39. <field name="numbercall">-1</field>
  40. <field name="doall" eval="True" />
  41. <field name="model">cooperative.status</field>
  42. <field name="function">_cron_compute_counter_irregular</field>
  43. <field name="args">()</field>
  44. <field name="active" eval="False" />
  45. </record>
  46. <record id="ir_cron_check_non_validated_sheet" model="ir.cron">
  47. <field name="name">Check for non-validated sheets</field>
  48. <field name="interval_number">1</field>
  49. <field name="interval_type">days</field>
  50. <field name="numbercall">-1</field>
  51. <field name="doall" eval="True" />
  52. <field name="nextcall" eval="(datetime.now() + timedelta(days=1)).replace(hour=1,minute=0,second=0)" />
  53. <field name="model">beesdoo.shift.sheet</field>
  54. <field name="function">_cron_non_validated_sheets</field>
  55. <field name="args">()</field>
  56. <field name="active" eval="False" />
  57. </record>
  58. <record id="ir_cron_send_weekly_emails" model="ir.cron">
  59. <field name="name">Send weekly shift summary</field>
  60. <field name="interval_number">7</field>
  61. <field name="interval_type">days</field>
  62. <field name="numbercall">-1</field>
  63. <field name="doall" eval="False" />
  64. <field name="nextcall"
  65. eval="str(datetime.utcnow() + timedelta((6-datetime.utcnow().weekday()) % 7 ))"
  66. />
  67. <field name="model">beesdoo.shift.shift</field>
  68. <field name="function">_cron_send_weekly_emails</field>
  69. <field name="args">()</field>
  70. <field name="active" eval="False" />
  71. </record>
  72. </data>
  73. </odoo>