summaryrefslogtreecommitdiff
path: root/addons/account_fleet/views/fleet_vehicle_views.xml
diff options
context:
space:
mode:
Diffstat (limited to 'addons/account_fleet/views/fleet_vehicle_views.xml')
-rw-r--r--addons/account_fleet/views/fleet_vehicle_views.xml20
1 files changed, 20 insertions, 0 deletions
diff --git a/addons/account_fleet/views/fleet_vehicle_views.xml b/addons/account_fleet/views/fleet_vehicle_views.xml
new file mode 100644
index 00000000..92a5a8dd
--- /dev/null
+++ b/addons/account_fleet/views/fleet_vehicle_views.xml
@@ -0,0 +1,20 @@
+<?xml version='1.0' encoding='utf-8'?>
+<odoo>
+ <record id="fleet_vehicle_view_form" model="ir.ui.view">
+ <field name="name">fleet.vehicle.form</field>
+ <field name="model">fleet.vehicle</field>
+ <field name="inherit_id" ref="fleet.fleet_vehicle_view_form"/>
+ <field name="arch" type="xml">
+ <xpath expr="//button[@name='open_assignation_logs']" position='before'>
+ <button name="action_view_bills"
+ type="object"
+ class="oe_stat_button"
+ icon="fa-pencil-square-o"
+ attrs="{'invisible': [('bill_count', '=', 0)]}"
+ help="show the vendor bills for this vehicle">
+ <field name="bill_count" widget="statinfo" string="Bills"/>
+ </button>
+ </xpath>
+ </field>
+ </record>
+</odoo>