fleet_vehicle_views.xml 879 B

123456789101112131415161718192021
  1. <?xml version='1.0' encoding='utf-8'?>
  2. <odoo>
  3. <record id="fleet_vehicle_view_form" model="ir.ui.view">
  4. <field name="name">fleet.vehicle.form</field>
  5. <field name="model">fleet.vehicle</field>
  6. <field name="inherit_id" ref="fleet.fleet_vehicle_view_form"/>
  7. <field name="arch" type="xml">
  8. <xpath expr="//button[@name='open_assignation_logs']" position='before'>
  9. <button name="action_view_bills"
  10. type="object"
  11. class="oe_stat_button"
  12. icon="fa-pencil-square-o"
  13. attrs="{'invisible': [('bill_count', '=', 0)]}"
  14. help="show the vendor bills for this vehicle">
  15. <field name="bill_count" widget="statinfo" string="Bills"/>
  16. </button>
  17. </xpath>
  18. </field>
  19. </record>
  20. </odoo>