Hi everyone.
I'm new to odoo 8 and would like to customize it to my needs. Not to spoil the original code, I've created new module with scaffold command. Now I would need to create a button in header of sales invoice form, which will run my customized invoice print. What I've done so far with my.xml looks like this, but it is not complete yet.
<openerp>
<data>
<record id="invoice.form.my" model="ir.ui.view">
<field name="name">account.invoice.form.my</field>
<field name="model">account.invoice</field>
<field name="inherit_id" ref="account.invoice_5"/>
<field name="arch" type="xml">
<!-- some xpath expression to add "Print2" -->
</field>
</record>
</data>
</openerp>
What would be the appropriate xpath to add button "Print2" to the form header? Should this xpath expression replace the current content of form header, or can it just add new button to it? Can you please post a short example of code.
Much thanks in advance for help, regards.