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

        <!-- ================================================================== -->
        <!-- SEQUENCES                                                           -->
        <!-- ================================================================== -->
        <record id="seq_ltc_facility" model="ir.sequence">
            <field name="name">LTC Facility</field>
            <field name="code">fusion.ltc.facility</field>
            <field name="prefix">LTC-</field>
            <field name="padding">4</field>
            <field name="company_id" eval="False"/>
        </record>

        <record id="seq_ltc_repair" model="ir.sequence">
            <field name="name">LTC Repair</field>
            <field name="code">fusion.ltc.repair</field>
            <field name="prefix">LTC-RPR-</field>
            <field name="padding">5</field>
            <field name="company_id" eval="False"/>
        </record>

        <record id="seq_ltc_cleanup" model="ir.sequence">
            <field name="name">LTC Cleanup</field>
            <field name="code">fusion.ltc.cleanup</field>
            <field name="prefix">LTC-CLN-</field>
            <field name="padding">5</field>
            <field name="company_id" eval="False"/>
        </record>

        <record id="seq_ltc_form_submission" model="ir.sequence">
            <field name="name">LTC Form Submission</field>
            <field name="code">fusion.ltc.form.submission</field>
            <field name="prefix">LTC-SUB-</field>
            <field name="padding">5</field>
            <field name="number_next">1</field>
            <field name="number_increment">1</field>
        </record>

        <!-- ================================================================== -->
        <!-- DEFAULT LTC REPAIR SERVICE PRODUCT                                  -->
        <!-- ================================================================== -->
        <record id="product_ltc_repair_service" model="product.template">
            <field name="name">REPAIRS AT LTC HOME</field>
            <field name="default_code">LTC-REPAIR</field>
            <field name="type">service</field>
            <field name="list_price">0.00</field>
            <field name="sale_ok" eval="True"/>
            <field name="purchase_ok" eval="False"/>
        </record>

        <!-- ================================================================== -->
        <!-- DEFAULT REPAIR STAGES                                               -->
        <!-- ================================================================== -->
        <record id="ltc_repair_stage_new" model="fusion.ltc.repair.stage">
            <field name="name">New</field>
            <field name="sequence">1</field>
            <field name="fold">False</field>
            <field name="description">Newly submitted repair requests awaiting review.</field>
        </record>

        <record id="ltc_repair_stage_in_review" model="fusion.ltc.repair.stage">
            <field name="name">In Review</field>
            <field name="sequence">2</field>
            <field name="fold">False</field>
            <field name="description">Under review by office staff before assignment.</field>
        </record>

        <record id="ltc_repair_stage_in_progress" model="fusion.ltc.repair.stage">
            <field name="name">In Progress</field>
            <field name="sequence">3</field>
            <field name="fold">False</field>
            <field name="description">Technician has been assigned and repair is underway.</field>
        </record>

        <record id="ltc_repair_stage_completed" model="fusion.ltc.repair.stage">
            <field name="name">Completed</field>
            <field name="sequence">4</field>
            <field name="fold">True</field>
            <field name="description">Repair has been completed by the technician.</field>
        </record>

        <record id="ltc_repair_stage_invoiced" model="fusion.ltc.repair.stage">
            <field name="name">Invoiced</field>
            <field name="sequence">5</field>
            <field name="fold">True</field>
            <field name="description">Sale order created and invoiced for this repair.</field>
        </record>

        <record id="ltc_repair_stage_declined" model="fusion.ltc.repair.stage">
            <field name="name">Declined/No Response</field>
            <field name="sequence">6</field>
            <field name="fold">True</field>
            <field name="description">Repair was declined or no response was received.</field>
        </record>

        <!-- ================================================================== -->
        <!-- CRON: Cleanup scheduling                                            -->
        <!-- ================================================================== -->
        <record id="ir_cron_ltc_cleanup_schedule" model="ir.cron">
            <field name="name">LTC: Auto-Schedule Cleanups</field>
            <field name="model_id" ref="model_fusion_ltc_cleanup"/>
            <field name="state">code</field>
            <field name="code">model._cron_schedule_cleanups()</field>
            <field name="interval_number">1</field>
            <field name="interval_type">days</field>
            <field name="active">True</field>
        </record>

    </data>
</odoo>
