Hello I'm getting the following error while trying to inherit sale.order form in my own module, I want to add a button in the sale.order form next to the print button which says "Orden de Trabajo" or "Work Order" this one generates a PDF with the following variables.. number of order, customer, product, quantity, the code is made, just don't know how to inherit correctly to add this button to the sale.order form
ParseError: "Error mientras se validavan las restricciones El elemento '<xpath expr="//header[@name='print_quotation']">' no puede ser localizado en la vista padre Error de contexto: Vista `sale.order.form.inherit` [view_id: 3446, xml_id: n/a, model: sale.order, parent_id: 547] None" while parsing file:///c:/odoo 10.0e/server/odoo/custom_addons/orden_trabajo/views/boton_ot.xml:4, near <record id="view_order_form_inherit" model="ir.ui.view"> <field name="name">sale.order.form.inherit</field> <field name="model">sale.order</field> <field name="inherit_id" ref="sale.view_order_form"/> <field name="arch" type="xml"> <!--The action --> <xpath expr="//header[@name='print_quotation']" position="after"> <button string="Orden de Trabajo" type="object" name="print_work_order"/> </xpath> </field> </record>