Odoo modules related to surveys
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.

21 lines
810 B

2 years ago
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <data noupdate="1">
  4. <!-- <data> -->
  5. <record model="ir.cron" id="cron_close_expired_surveys">
  6. <field name="name">Close expired surveys</field>
  7. <field name="model_id" ref="survey.model_survey_survey"/>
  8. <field name="state">code</field>
  9. <field name="code">model.with_context(cron=True).cron_close_deadline_survey()</field>
  10. <field name="active" eval="True"/>
  11. <field name="user_id" ref="base.user_root"/>
  12. <field name="interval_number">1</field>
  13. <field name="interval_type">days</field>
  14. <field name="nextcall" eval="(datetime.today() + relativedelta(days=1)).strftime('%Y-%m-%d 00:08:00')"/>
  15. <field name="numbercall">-1</field>
  16. <field name="doall" eval="False"/>
  17. </record>
  18. </data>
  19. </odoo>