<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <record id="ir_cron_nilvera_get_new_purchase_documents" model="ir.cron">
        <field name="name">Nilvera: retrieve new purchase documents</field>
        <field name="model_id" ref="model_account_move"/>
        <field name="state">code</field>
        <field name="code">model._cron_nilvera_get_new_einvoice_purchase_documents()</field>
        <field name="interval_number">12</field>
        <field name="interval_type">hours</field>
        <field name="nextcall" eval="(DateTime.now() + timedelta(hours=12)).strftime('%Y-%m-%d %H:%M:%S')"/>
    </record>

    <record id="ir_cron_nilvera_get_new_einvoice_sale_documents" model="ir.cron">
        <field name="name">Nilvera: retrieve E-Invoice new sale documents</field>
        <field name="model_id" ref="model_account_move"/>
        <field name="state">code</field>
        <field name="code">model._cron_nilvera_get_new_einvoice_sale_documents()</field>
        <field name="interval_number">12</field>
        <field name="interval_type">hours</field>
        <field name="nextcall" eval="(DateTime.now() + timedelta(hours=12)).strftime('%Y-%m-%d %H:%M:%S')"/>
    </record>

    <record id="ir_cron_nilvera_get_new_earchive_sale_documents" model="ir.cron">
        <field name="name">Nilvera: retrieve new E-Archive sale documents</field>
        <field name="model_id" ref="model_account_move"/>
        <field name="state">code</field>
        <field name="code">model._cron_nilvera_get_new_earchive_sale_documents()</field>
        <field name="interval_number">12</field>
        <field name="interval_type">hours</field>
        <field name="nextcall" eval="(DateTime.now() + timedelta(hours=12)).strftime('%Y-%m-%d %H:%M:%S')"/>
    </record>

    <record id="ir_cron_nilvera_get_invoice_status" model="ir.cron">
        <field name="name">Nilvera: retrieve invoice status</field>
        <field name="model_id" ref="model_account_move"/>
        <field name="state">code</field>
        <field name="code">model._cron_nilvera_get_invoice_status()</field>
        <field name="interval_number">12</field>
        <field name="interval_type">hours</field>
        <field name="nextcall" eval="(DateTime.now() + timedelta(hours=12)).strftime('%Y-%m-%d %H:%M:%S')"/>
    </record>

    <record id="ir_cron_nilvera_get_sale_pdf" model="ir.cron">
        <field name="name">Nilvera: retrieve sale PDFs</field>
        <field name="model_id" ref="model_account_move"/>
        <field name="state">code</field>
        <field name="code">model._cron_nilvera_get_sale_pdf()</field>
        <field name="interval_number">12</field>
        <field name="interval_type">hours</field>
        <field name="nextcall" eval="(DateTime.now() + timedelta(hours=12)).strftime('%Y-%m-%d %H:%M:%S')"/>
    </record>
</odoo>
