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

    <!-- Landscape Paper Format for LTC Reports -->
    <record id="paperformat_ltc_landscape" model="report.paperformat">
        <field name="name">LTC Landscape</field>
        <field name="default" eval="False"/>
        <field name="format">A4</field>
        <field name="orientation">Landscape</field>
        <field name="margin_top">20</field>
        <field name="margin_bottom">20</field>
        <field name="margin_left">7</field>
        <field name="margin_right">7</field>
        <field name="header_line">False</field>
        <field name="header_spacing">10</field>
        <field name="dpi">90</field>
    </record>

    <!-- LTC Repair Order / Quotation Report (Landscape) -->
    <record id="action_report_saleorder_ltc_repair" model="ir.actions.report">
        <field name="name">LTC Repair Order / Quotation</field>
        <field name="model">sale.order</field>
        <field name="report_type">qweb-pdf</field>
        <field name="report_name">fusion_ltc_management.report_saleorder_ltc_repair</field>
        <field name="report_file">fusion_ltc_management.report_saleorder_ltc_repair</field>
        <field name="print_report_name">'LTC Repair - %s - %s' % (object.name, object.partner_id.name)</field>
        <field name="binding_model_id" ref="sale.model_sale_order"/>
        <field name="binding_type">report</field>
        <field name="paperformat_id" ref="paperformat_ltc_landscape"/>
    </record>

</odoo>
