<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <!-- custom pager format -->
    <record id="paperformat_packaging_list" model="report.paperformat">
        <field name="name">Custom Paperformat for the packaging list report</field>
        <field name="default" eval="False"/>
        <field name="disable_shrinking" eval="True"/>
        <field name="format">A4</field>
        <field name="orientation">Landscape</field>
        <field name="margin_top">10</field>
        <field name="margin_bottom">8</field>
        <field name="margin_left">5</field>
        <field name="margin_right">5</field>
        <field name="dpi">90</field>
    </record>

    <record id="action_report_ekg_packing_list" model="ir.actions.report">
        <field name="name">EKG Packing List</field>
        <field name="model">stock.picking</field>
        <field name="report_type">qweb-pdf</field>
        <field name="paperformat_id" ref="paperformat_packaging_list"/>
        <field name="report_name">nfu_ekg_stock.report_ekg_packing_list</field>
        <field name="report_file">nfu_ekg_stock.report_packing_list</field>
        <field
            name="print_report_name"
        >'EKG Packing List - %s - %s' % (object.partner_id.name or '', object.name)</field>
        <field name="binding_model_id" ref="stock.model_stock_picking"/>
        <field name="binding_type">report</field>
    </record>

    <record id="action_report_ekg_packing_list_lf" model="ir.actions.report">
        <field name="name">EKG Packing List LF</field>
        <field name="model">stock.picking</field>
        <field name="report_type">qweb-pdf</field>
        <field name="paperformat_id" ref="paperformat_packaging_list"/>
        <field name="report_name">nfu_ekg_stock.report_ekg_packing_list_lf</field>
        <field name="report_file">nfu_ekg_stock.report_packing_list</field>
        <field
            name="print_report_name"
        >'EKG Packing List - %s - %s' % (object.partner_id.name or '', object.name)</field>
        <field name="binding_model_id" ref="stock.model_stock_picking"/>
        <field name="binding_type">report</field>
    </record>

    <record id="action_report_ekg_delivery" model="ir.actions.report">
        <field name="name">EKG Delivery Slip</field>
        <field name="model">stock.picking</field>
        <field name="report_type">qweb-pdf</field>
        <field name="report_name">nfu_ekg_stock.report_ekg_deliveryslip</field>
        <field name="report_file">nfu_ekg_stock.report_deliveryslip</field>
        <field
            name="print_report_name"
        >'EKG Delivery Slip -  %s, %s - %s' % (object.partner_id.lastname or '',object.partner_id.firstname or '', object.name)</field>
        <field name="binding_model_id" ref="stock.model_stock_picking"/>
        <field name="binding_type">report</field>
    </record>

    <record id="action_report_ekg_delivery_lf" model="ir.actions.report">
        <field name="name">EKG Delivery Slip LF</field>
        <field name="model">stock.picking</field>
        <field name="report_type">qweb-pdf</field>
        <field name="report_name">nfu_ekg_stock.report_ekg_deliveryslip_lf</field>
        <field name="report_file">nfu_ekg_stock.report_deliveryslip</field>
        <field
            name="print_report_name"
        >'EKG Delivery Slip - %s, %s - %s' % (object.partner_id.lastname or '',object.partner_id.firstname or '', object.name)</field>
        <field name="binding_model_id" ref="stock.model_stock_picking"/>
        <field name="binding_type">report</field>
    </record>

    <record id="action_report_ekg_delivery_compact" model="ir.actions.report">
        <field name="name">EKG Delivery Slip Compact</field>
        <field name="model">stock.picking</field>
        <field name="report_type">qweb-pdf</field>
        <field name="report_name">nfu_ekg_stock.report_ekg_deliveryslip_compact</field>
        <field name="report_file">nfu_ekg_stock.report_deliveryslip_compact</field>
        <field
            name="print_report_name"
        >'EKG Delivery Slip Compact - %s - %s' % (object.partner_id.name or '', object.name)</field>
        <field name="binding_model_id" ref="stock.model_stock_picking"/>
        <field name="binding_type">report</field>
    </record>

</odoo>
