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.

81 lines
3.7 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="model_id" ref="model_cooperative_status" />
  6. <field name="state">code</field>
  7. <field name="code">model._set_today()</field>
  8. <field name="interval_number">24</field>
  9. <field name="interval_type">hours</field>
  10. <field name="numbercall">-1</field>
  11. <field name="doall" eval="False" />
  12. </record>
  13. <record id="ir_cron_generate_next_planning" model="ir.cron">
  14. <field name="name">Generate Next Planning</field>
  15. <field name="model_id" ref="model_beesdoo_shift_planning" />
  16. <field name="state">code</field>
  17. <field name="code">model._generate_next_planning()</field>
  18. <field name="interval_number">1</field>
  19. <field name="interval_type">weeks</field>
  20. <field name="numbercall">-1</field>
  21. <field name="doall" eval="False" />
  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 Sheets</field>
  26. <field name="model_id" ref="model_beesdoo_shift_sheet" />
  27. <field name="state">code</field>
  28. <field name="code">model._generate_attendance_sheet()</field>
  29. <field name="user_id" ref="base.user_root" />
  30. <field name="interval_number">4</field>
  31. <field name="interval_type">minutes</field>
  32. <field name="numbercall">-1</field>
  33. <field name="doall" eval="False" />
  34. <field name="active" eval="False" />
  35. </record>
  36. <record id="ir_cron_compute_shift_counter" model="ir.cron">
  37. <field name="name">Compute Shift Counter</field>
  38. <field name="model_id" ref="model_cooperative_status" />
  39. <field name="state">code</field>
  40. <field name="code">model._cron_compute_counter_irregular()</field>
  41. <field name="interval_number">4</field>
  42. <field name="interval_type">hours</field>
  43. <field name="numbercall">-1</field>
  44. <field name="doall" eval="True" />
  45. <field name="active" eval="False" />
  46. </record>
  47. <record id="ir_cron_check_non_validated_sheet" model="ir.cron">
  48. <field name="name">Check for non-validated sheets</field>
  49. <field name="model_id" ref="model_beesdoo_shift_sheet" />
  50. <field name="state">code</field>
  51. <field name="code">model._cron_non_validated_sheets()</field>
  52. <field name="interval_number">1</field>
  53. <field name="interval_type">days</field>
  54. <field name="numbercall">-1</field>
  55. <field name="doall" eval="False" />
  56. <field name="nextcall" eval="datetime.now().replace(hour=00, minute=00, second=10)" />
  57. <field name="active" eval="False" />
  58. </record>
  59. <record id="ir_cron_send_weekly_emails" model="ir.cron">
  60. <field name="name">Send weekly shift summary</field>
  61. <field name="model_id" ref="model_beesdoo_shift_shift" />
  62. <field name="state">code</field>
  63. <field name="code">model._cron_send_weekly_emails()</field>
  64. <field name="interval_number">7</field>
  65. <field name="interval_type">days</field>
  66. <field name="numbercall">-1</field>
  67. <field name="doall" eval="True" />
  68. <field name="nextcall"
  69. eval="datetime.now() + timedelta((6 - datetime.now().weekday()) % 7)"
  70. />
  71. <field name="active" eval="False" />
  72. </record>
  73. </data>
  74. </odoo>