odoo/addons/purchase_double_validation/purchase_double_validation_...

23 lines
940 B
XML

<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record id="view_purchase_form_inherit" model="ir.ui.view">
<field name="name">purchase.order.form.inherit</field>
<field name="model">purchase.order</field>
<field name="inherit_id" ref="purchase.purchase_order_form"/>
<field name="type">form</field>
<field name="arch" type="xml">
<xpath expr="//button[@string='Convert to Purchase Order']" position="replace">
<button name="draft_router1" states="draft" string="Confirm" icon="gtk-go-forward"/>
</xpath>
<xpath expr="//button[@string='Approve Purchase']" position="replace">
<button name="waiting_confirmed" states="wait" string="Convert to Purchase Order" icon="gtk-go-forward"/>
</xpath>
</field>
</record>
</data>
</openerp>