| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
<odoo> |
| 3 |
<record id="view_repair_order_form_inherit" model="ir.ui.view"> |
| 4 |
<field name="name">repair.order.form.inherit</field> |
| 5 |
<field name="model">repair.order</field> |
| 6 |
<field name="inherit_id" ref="repair.view_repair_order_form"/> |
| 7 |
<field name="arch" type="xml"> |
| 8 |
<xpath expr="//button[@name='action_view_sale_order']" position="after"> |
| 9 |
<button |
| 10 |
class="oe_stat_button" name="action_view_purchase_orders" type="object" |
| 11 |
icon="fa-credit-card" groups="purchase.group_purchase_user" |
| 12 |
invisible="purchase_count == 0 or state == 'draft'"> |
| 13 |
<div class="o_field_widget o_stat_info"> |
| 14 |
<field name="purchase_count" string="Purchase Orders" widget="statinfo"/> |
| 15 |
</div> |
| 16 |
</button> |
| 17 |
</xpath> |
| 18 |
</field> |
| 19 |
</record> |
| 20 |
</odoo> |