| 1 | <odoo> |
| 2 | <data> |
| 3 | <record id="stock_location_form_maintenance_equipments" model="ir.ui.view"> |
| 4 | <field name="name">stock.location.form.inherit.maintenance.equipments</field> |
| 5 | <field name="model">stock.location</field> |
| 6 | <field name="inherit_id" ref="stock.view_location_form"/> |
| 7 | <field name="arch" type="xml"> |
| 8 | <xpath expr="//div[hasclass('oe_button_box')]" position="inside"> |
| 9 | <button class="oe_stat_button" name="action_view_equipments_records" |
| 10 | type="object" icon="fa-wrench" |
| 11 | invisible="equipment_count == 0"> |
| 12 | <div class="o_stat_info"> |
| 13 | <span class="o_stat_value"> |
| 14 | <field name="equipment_count" /> |
| 15 | </span> |
| 16 | <span class="o_stat_text"> |
| 17 | Equipments |
| 18 | </span> |
| 19 | </div> |
| 20 | </button> |
| 21 | </xpath> |
| 22 | </field> |
| 23 | </record> |
| 24 | </data> |
| 25 | </odoo> |