| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
<odoo> |
| 3 |
<record id="purchase_order_form_inherit" model="ir.ui.view"> |
| 4 |
<field name="name">purchase.order.form.inherit</field> |
| 5 |
<field name="model">purchase.order</field> |
| 6 |
<field name="inherit_id" ref="purchase.purchase_order_form"/> |
| 7 |
<field name="arch" type="xml"> |
| 8 |
<xpath expr="//button[@name='action_view_invoice']" position="after"> |
| 9 |
<button |
| 10 |
class="oe_stat_button" name="action_view_repair_orders" type="object" |
| 11 |
icon="fa-wrench" groups="stock.group_stock_user" |
| 12 |
invisible="repair_count == 0"> |
| 13 |
<div class="o_field_widget o_stat_info"> |
| 14 |
<field name="repair_count" string="Repair Orders" widget="statinfo"/> |
| 15 |
</div> |
| 16 |
</button> |
| 17 |
</xpath> |
| 18 |
</field> |
| 19 |
</record> |
| 20 |
</odoo> |