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.

19 lines
837 B

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. Copyright 2020 Coop IT Easy
  4. License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
  5. -->
  6. <odoo>
  7. <record id="fetch_subscription_requests_cron" model="ir.cron">
  8. <field name="name">Fetch Subscription Requests</field>
  9. <field name="interval_number">1</field>
  10. <field name="interval_type">days</field>
  11. <field name="numbercall">-1</field>
  12. <field name="nextcall" eval="(DateTime.today() + timedelta(days=1)).strftime('%Y-%m-%d 01:00:00')"/>
  13. <field name="doall" eval="True"/>
  14. <field name="model_id" ref="easy_my_coop.model_subscription_request"/>
  15. <field name="state">code</field>
  16. <field name="code">model.fetch_subscription_requests_cron()</field>
  17. <field name="sequence">50</field>
  18. </record>
  19. </odoo>