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

    <record id="view_paperformat_label_view_form" model="ir.ui.view">
        <field name="model">report.paperformat.label</field>
        <field name="arch" type="xml">
            <form string="Paper format configuration">
                <sheet>
                    <group>
                        <field name="name" />
                        <field name="paperformat_id" />
                    </group>
                    <group name="label">
                        <group
                            name="label_settings"
                            string="Label Settings"
                            colspan="2"
                        >
                            <field name="label_height" />
                            <field name="label_width" />
                            <field name="label_background_color" widget="color" />
                        </group>
                        <group name="label_padding" string="Label Padding">
                            <field string="Top (mm)" name="label_padding_top" />
                            <field string="Right (mm)" name="label_padding_right" />
                            <field string="Bottom (mm)" name="label_padding_bottom" />
                            <field string="Left (mm)" name="label_padding_left" />
                        </group>
                        <group name="label_margin" string="Label Margin">
                            <field string="Top (mm)" name="label_margin_top" />
                            <field string="Right (mm)" name="label_margin_right" />
                            <field string="Bottom (mm)" name="label_margin_bottom" />
                            <field string="Left (mm)" name="label_margin_left" />
                        </group>
                    </group>
                </sheet>
            </form>
        </field>
    </record>

    <record id="paperformat_label_view_tree" model="ir.ui.view">
        <field name="model">report.paperformat.label</field>
        <field name="arch" type="xml">
            <tree>
                <field name="name" />
                <field name="paperformat_id" />
                <field name="label_height" />
                <field name="label_width" />
            </tree>
        </field>
    </record>

    <record id="paperformat_label_action" model="ir.actions.act_window">
        <field name="name">Label paper format configuration</field>
        <field name="res_model">report.paperformat.label</field>
        <field name="view_mode">tree,form</field>
        <field name="domain">[]</field>
        <field name="context">{}</field>
    </record>

    <menuitem
        id="paperformat_label_menu"
        name="Label Paper Formats"
        action="paperformat_label_action"
        parent="base.reporting_menuitem"
        sequence="2"
    />

</odoo>
