<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <data noupdate="1">
        <!-- Scheduler For Watchdog Free Rooms and Channel Availability -->
        <record model="ir.cron" id="channel_availability_watchdog">
            <field name="name">Watchdog Free Rooms and Channel Availability</field>
            <field name="interval_number">1</field>
            <field name="interval_type">days</field>
            <field name="numbercall">-1</field>
            <field name="nextcall" eval="(DateTime.now() + timedelta(days=1)).strftime('%Y-%m-%d 03:00:00')"/>
            <field name="doall" eval="False" />
            <field name="model_id" ref="model_channel_backend" />
            <field name="state">code</field>
            <field name="code">model.with_context({'email_to': 'watchdog@roomdoo.com'}).cron_channel_availability_watchdog()</field>
        </record>
    </data>
</odoo>
