<?xml version="1.0" encoding="utf-8"?>
<odoo>

        <record id="ir_cron_module_update_notification_openeducat" model="ir.cron">
            <field name="name">Publisher: Update Notification OpenEduCat</field>
            <field name="model_id" ref="model_publisher_warranty_contract"/>
            <field name="state">code</field>
            <field name="code">model.update_notification_openeducat(None)</field>
            <field name="user_id" ref="base.user_root"/>
            <field name="interval_number">1</field>
            <field name="interval_type">days</field>
            <field name="nextcall" eval="(DateTime.now() + timedelta(days=1)).strftime('%Y-%m-%d %H:%M:%S')"/>
            <field name="priority">1000</field>
        </record>

        <record id="base.ir_cron_act" model="ir.actions.act_window">
            <field name="domain" eval="[('id', 'not in', [ref('mail.ir_cron_module_update_notification'),ref('openeducat_core.ir_cron_module_update_notification_openeducat'),])]"/>
        </record>
</odoo>
