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

  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. </record>
  23. <record id="ir_cron_compute_shift_counter" model="ir.cron">
  24. <field name="name">Compute Shift Counter</field>
  25. <field name="model_id" ref="model_cooperative_status"/>
  26. <field name="state">code</field>
  27. <field name="code">model._cron_compute_counter_irregular()</field>
  28. <field name="interval_number">4</field>
  29. <field name="interval_type">hours</field>
  30. <field name="numbercall">-1</field>
  31. <field name="doall" eval="True"/>
  32. <field name="active" eval="False"/>
  33. <field name="state">code</field>
  34. </record>
  35. <record id="ir_cron_send_weekly_emails" model="ir.cron">
  36. <field name="name">Send weekly shift summary</field>
  37. <field name="model_id" ref="model_beesdoo_shift_shift"/>
  38. <field name="state">code</field>
  39. <field name="code">model._cron_send_weekly_emails()</field>
  40. <field name="interval_number">7</field>
  41. <field name="interval_type">days</field>
  42. <field name="numbercall">-1</field>
  43. <field name="doall" eval="True"/>
  44. <field name="nextcall"
  45. eval="datetime.now() + timedelta((6 - datetime.now().weekday()) % 7)"
  46. />
  47. <field name="active" eval="False"/>
  48. </record>
  49. </data>
  50. </odoo>