{"en_US": "<data><!-- ESTADO: ocultar la barra estándar (state) y dejar SOLO las 7 fases RELSUM. -->\n            <xpath expr=\"//header/field[@name='state']\" position=\"attributes\">\n                <attribute name=\"invisible\">1</attribute>\n            </xpath>\n\n            <!-- Barra de 7 fases RELSUM clicable en ambos sentidos -->\n            <xpath expr=\"//header\" position=\"inside\">\n                <field name=\"relsum_workflow_stage\" widget=\"statusbar\" options=\"{'clickable': '1'}\" statusbar_visible=\"received,diagnostic,quoted,in_progress,ready,delivered,invoiced\"/>\n            </xpath>\n\n            <!-- SMART BUTTONS -->\n            <xpath expr=\"//div[@name='button_box']\" position=\"inside\">\n\n                <button type=\"object\" name=\"action_view_sale_orders\" class=\"oe_stat_button\" icon=\"fa-shopping-cart\">\n                    <field name=\"sale_order_count\" widget=\"statinfo\" string=\"Presupuestos\"/>\n                </button>\n\n                <button type=\"object\" name=\"action_view_purchase_orders\" class=\"oe_stat_button\" icon=\"fa-truck\">\n                    <field name=\"purchase_order_count\" widget=\"statinfo\" string=\"Compras\"/>\n                </button>\n\n                <button type=\"object\" name=\"action_view_pickings\" class=\"oe_stat_button\" icon=\"fa-exchange\">\n                    <field name=\"picking_count\" widget=\"statinfo\" string=\"Albaranes\"/>\n                </button>\n\n                <button type=\"object\" name=\"action_view_invoices\" class=\"oe_stat_button\" icon=\"fa-pencil-square-o\">\n                    <field name=\"invoice_count\" widget=\"statinfo\" string=\"Facturas\"/>\n                </button>\n\n                <button type=\"object\" name=\"action_view_technical_reports\" class=\"oe_stat_button\" icon=\"fa-file-text-o\">\n                    <field name=\"technical_report_count\" widget=\"statinfo\" string=\"Informes\"/>\n                </button>\n\n            </xpath>\n\n            <!-- CABECERA: presupuesto principal + máquina -->\n            <xpath expr=\"//sheet/group/group[1]\" position=\"inside\">\n                <field name=\"sale_order_id\"/>\n                <field name=\"relsum_machine_id\"/>\n            </xpath>\n\n            <!-- FASE 1.1: \"Demand\" → \"Cantidad\" en piezas -->\n            <xpath expr=\"//field[@name='move_ids']//field[@name='product_uom_qty']\" position=\"attributes\">\n                <attribute name=\"string\">Cantidad</attribute>\n            </xpath>\n\n            <!-- FASE 1.2: Ocultar columna Unidades de medida en piezas -->\n            <xpath expr=\"//field[@name='move_ids']//field[@name='product_uom']\" position=\"attributes\">\n                <attribute name=\"column_invisible\">1</attribute>\n            </xpath>\n\n            <!-- FASE 1.3: Ocultar pestaña Miscellaneous -->\n            <xpath expr=\"//page[@name='page_miscellaneous']\" position=\"attributes\">\n                <attribute name=\"invisible\">1</attribute>\n            </xpath>\n\n            <!-- NOTEBOOK -->\n            <xpath expr=\"//notebook\" position=\"inside\">\n\n                <!-- DATOS TÉCNICOS -->\n                <page string=\"Datos Técnicos\" name=\"datos_tecnicos\">\n                    <div invisible=\"relsum_machine_id\" class=\"alert alert-info\" role=\"alert\">\n                        <p>Esta OT aún no tiene máquina asignada. Selecciónala en la cabecera.</p>\n                    </div>\n                    <group invisible=\"not relsum_machine_id\">\n                        <group string=\"Identificación\">\n                            <field name=\"machine_marca\"/>\n                            <field name=\"machine_tipo\"/>\n                            <field name=\"machine_numero_serie\"/>\n                            <field name=\"machine_planta_id\"/>\n                        </group>\n                        <group string=\"Características eléctricas\">\n                            <field name=\"machine_voltios\"/>\n                            <field name=\"machine_kva\"/>\n                            <field name=\"machine_cos_phi\"/>\n                            <field name=\"machine_kw\"/>\n                            <field name=\"machine_cv\"/>\n                            <field name=\"machine_rpm\"/>\n                            <field name=\"machine_amperios\"/>\n                            <field name=\"machine_hz\"/>\n                            <field name=\"machine_cos_phi\"/>\n                            <field name=\"machine_kw\"/>\n                            <field name=\"machine_cv\"/>\n                        </group>\n                    </group>\n                </page>\n\n                <!-- PARTES DE TRABAJO -->\n                <page string=\"Partes de trabajo\" name=\"partes_trabajo\">\n                    <group>\n                        <group string=\"Resumen\">\n                            <field name=\"timesheet_hours\" readonly=\"1\"/>\n                        </group>\n                        <group string=\"Contabilidad analítica\" groups=\"analytic.group_analytic_accounting\">\n                            <field name=\"analytic_account_id\"/>\n                        </group>\n                    </group>\n                    <field name=\"timesheet_ids\" context=\"{'default_repair_order_id': id}\">\n                        <list editable=\"bottom\">\n                            <field name=\"date\"/>\n                            <field name=\"employee_id\" optional=\"show\"/>\n                            <field name=\"name\"/>\n                            <field name=\"unit_amount\" string=\"Horas\"/>\n                        </list>\n                    </field>\n                </page>\n\n                <!-- DATOS LEGACY MIGRACIÓN (solo admin) -->\n                <page string=\"Datos legacy (migración)\" name=\"legacy\" groups=\"base.group_no_one\">\n                    <group>\n                        <group string=\"Crosswalk legacy\">\n                            <field name=\"x_numero_ot\" readonly=\"1\"/>\n                            <field name=\"x_presupuesto\" readonly=\"1\"/>\n                            <field name=\"x_numero_pedido\" readonly=\"1\"/>\n                        </group>\n                        <group string=\"Datos máquina (importados)\">\n                            <field name=\"x_marca\" readonly=\"1\"/>\n                            <field name=\"x_tipo_maquina\" readonly=\"1\"/>\n                            <field name=\"x_numero_serie\" readonly=\"1\"/>\n                            <field name=\"x_planta\" readonly=\"1\"/>\n                            <field name=\"x_kva\" readonly=\"1\"/>\n                            <field name=\"x_voltios\" readonly=\"1\"/>\n                            <field name=\"x_rpm\" readonly=\"1\"/>\n                            <field name=\"x_amperios\" readonly=\"1\"/>\n                            <field name=\"x_hz\" readonly=\"1\"/>\n                        </group>\n                    </group>\n                    <group string=\"Texto libre legacy\">\n                        <field name=\"x_albaran\" readonly=\"1\"/>\n                        <field name=\"x_albaran_nota\" readonly=\"1\"/>\n                        <field name=\"x_pedido_proveedor\" readonly=\"1\"/>\n                        <field name=\"x_comentarios\" readonly=\"1\"/>\n                    </group>\n                </page>\n\n            </xpath>\n\n            <!-- FASE 2: Vista search con filtros RELSUM -->\n\n        </data>"}