Files
odoo_source/addons/account_fleet/views/fleet_vehicle_views.xml
T
william d1c0a97c18 [ADD] account_fleet: manage accounting with fleet
Task: 2186429

Add a vehicle on account.move.line to help create reports.
When a vehicle is set, log a service log on the vehicle.

closes odoo/odoo#49675

Related: odoo/upgrade#1357
Related: odoo/enterprise#8480
Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
2020-08-19 14:22:48 +00:00

21 lines
879 B
XML

<?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>