<data><!-- SMART BUTTONS -->
            <xpath expr="//sheet" position="before">

                <div class="oe_button_box" name="button_box">

                    <!-- VENTAS -->
                    <button type="object" name="action_view_sale_orders" class="oe_stat_button" icon="fa-shopping-cart">

                        <field name="sale_order_count" widget="statinfo" string="Ventas"/>

                    </button>

                    <!-- COMPRAS -->
                    <button type="object" name="action_view_purchase_orders" class="oe_stat_button" icon="fa-truck">

                        <field name="purchase_order_count" widget="statinfo" string="Compras"/>

                    </button>

                    <!-- ALBARANES -->
                    <button type="object" name="action_view_pickings" class="oe_stat_button" icon="fa-exchange">

                        <field name="picking_count" widget="statinfo" string="Albaranes"/>

                    </button>

                </div>

            </xpath>

            <!-- CABECERA -->
            <xpath expr="//sheet/group/group[1]" position="inside">

                <field name="x_numero_ot"/>

                <field name="sale_order_id"/>

                <field name="x_presupuesto"/>

                <field name="x_numero_pedido"/>

            </xpath>

            <!-- NOTEBOOK -->
            <xpath expr="//notebook" position="inside">

                <!-- COMERCIAL -->
                <page string="Comercial">

                    <group>

                        <group>

                            <field name="sale_order_ids" widget="many2many_tags"/>

                            <field name="partner_id" readonly="1"/>

                            <field name="x_presupuesto"/>

                        </group>

                        <group>

                            <field name="x_numero_pedido"/>

                        </group>

                    </group>

                </page>

                <!-- ALBARANES -->
                <page string="Albaranes">

                    <field name="picking_ids">

                        <list>

                            <field name="name"/>

                            <field name="partner_id"/>

                            <field name="scheduled_date"/>

                            <field name="state"/>

                            <field name="tipo_albaran"/>

                            <field name="no_invoice"/>

                        </list>

                    </field>

                </page>

                <!-- DATOS TECNICOS -->
                <page string="Datos Técnicos">

                    <group>

                        <group>

                            <field name="x_marca"/>
                            <field name="x_tipo_maquina"/>
                            <field name="x_numero_serie"/>
                            <field name="x_planta"/>

                        </group>

                        <group>

                            <field name="x_voltios"/>
                            <field name="x_kva"/>
                            <field name="x_rpm"/>
                            <field name="x_amperios"/>
                            <field name="x_hz"/>

                        </group>

                    </group>

                </page>

                <!-- COMPRAS -->
                <page string="Compras">

                    <field name="purchase_order_ids"/>

                </page>

                <!-- DOCUMENTACION -->
                <page string="Documentación">

                    <group>

                        <field name="x_albaran"/>
                        <field name="x_albaran_nota"/>
                        <field name="x_pedido_proveedor"/>

                    </group>

                </page>

                <!-- OBSERVACIONES -->
                <page string="Observaciones">

                    <field name="x_comentarios"/>

                </page>

            </xpath>

        </data>