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