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.

18 lines
779 B

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <data noupdate="1">
  4. <record id="cron_oneshot_cleanup" model="ir.cron" forcecreate="True">
  5. <field name="name">Oneshot cron cleanup</field>
  6. <field name="user_id" ref="base.user_root"/>
  7. <field name="model_id" ref="model_ir_cron"/>
  8. <field name="state">code</field>
  9. <field name="code">model.cron_oneshot_cleanup()</field>
  10. <field name="interval_number">1</field>
  11. <field name="interval_type">days</field>
  12. <!-- make it run the day after installation at midnight -->
  13. <field name="nextcall" eval="(DateTime.now() + timedelta(days=1)).strftime('%Y-%m-%d 00:00:00')" />
  14. <field name="numbercall">-1</field>
  15. <field name="doall" eval="False"/>
  16. </record>
  17. </data>
  18. </odoo>