<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <data>
        <record id="paperformat_ewaybill" model="report.paperformat">
            <field name="name">A4 - ewaybill</field>
            <field name="default" eval="True"/>
            <field name="format">A4</field>
            <field name="page_height">0</field>
            <field name="page_width">0</field>
            <field name="orientation">Portrait</field>
            <field name="margin_top">5</field>
            <field name="margin_bottom">5</field>
            <field name="margin_left">7</field>
            <field name="margin_right">7</field>
            <field name="header_line" eval="False"/>
            <field name="header_spacing">15</field>
            <field name="dpi">90</field>
        </record>

        <record id="action_report_ewaybill" model="ir.actions.report">
            <field name="name">Ewaybill</field>
            <field name="model">l10n.in.ewaybill</field>
            <field name="report_type">qweb-pdf</field>
            <field name="report_name">l10n_in_ewaybill_stock.report_ewaybill</field>
            <field name="report_file">l10n_in_ewaybill_stock.report_ewaybill</field>
            <field name="print_report_name">'Ewaybill - %s' % (object.document_number)</field>
            <field name="paperformat_id" ref="l10n_in_ewaybill_stock.paperformat_ewaybill"/>
            <field name="binding_model_id" ref="model_l10n_in_ewaybill"/>
            <field name="binding_type">report</field>
        </record>
    </data>
</odoo>
