<?xml version="1.0" encoding="utf-8" ?>
<odoo>
    <!-- Generate housekeeping tasks-->
    <record model="ir.cron" id="generate_tasks">
        <field name="name">Generate Housekeeping Tasks</field>
        <field name="interval_number">1</field>
        <field name="user_id" ref="base.user_root" />
        <field name="interval_type">days</field>
        <field name="numbercall">-1</field>
        <field name="doall" eval="False" />
        <field name="state">code</field>
        <field name="model_id" ref="model_pms_housekeeping_task" />
        <field
            name="nextcall"
            eval="(DateTime.now() + timedelta(days=1)).strftime('%Y-%m-%d 05:00:00')"
        />
        <field name="code">model.generate_task_properties()</field>
    </record>
</odoo>
