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

    <!-- ============================================================ -->
    <!--               SEQUENCE: Loan Reference                       -->
    <!-- ============================================================ -->
    <record id="seq_fusion_loan" model="ir.sequence">
        <field name="name">Fusion Loan</field>
        <field name="code">fusion.loan</field>
        <field name="prefix">LOAN/%(year)s/</field>
        <field name="padding">4</field>
        <field name="company_id" eval="False"/>
    </record>

    <!-- ============================================================ -->
    <!--        SCHEDULED ACTION: Auto-generate Loan Entries          -->
    <!-- ============================================================ -->
    <record id="ir_cron_generate_loan_entries" model="ir.cron">
        <field name="name">Generate Loan Installment Entries</field>
        <field name="model_id" ref="model_fusion_loan"/>
        <field name="state">code</field>
        <field name="code">model._cron_generate_loan_entries()</field>
        <field name="interval_number">1</field>
        <field name="interval_type">days</field>

        <field name="active">True</field>
    </record>

</odoo>
