| 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <odoo> |
| 3 | <record id="stock_picking_form_mrp_subcontracting" model="ir.ui.view"> |
| 4 | <field name="name">stock.picking.inherited.form.mrp.subcontracting</field> |
| 5 | <field name="model">stock.picking</field> |
| 6 | <field name="inherit_id" ref="stock.view_picking_form"/> |
| 7 | <field name="arch" type="xml"> |
| 8 | <xpath expr="//div[hasclass('oe_button_box')]" position="inside"> |
| 9 | <button |
| 10 | class="oe_stat_button" name="action_view_subcontracting_source_purchase" |
| 11 | type="object" icon="fa-credit-card" invisible="subcontracting_source_purchase_count == 0" groups="stock.group_stock_user"> |
| 12 | <div class="o_field_widget o_stat_info"> |
| 13 | <span class="o_stat_value"><field name="subcontracting_source_purchase_count"/></span> |
| 14 | <span class="o_stat_text">Source PO</span> |
| 15 | </div> |
| 16 | </button> |
| 17 | </xpath> |
| 18 | </field> |
| 19 | </record> |
| 20 | </odoo> |