Files
odoo_source/addons/fleet_account/views/fleet_views.xml
T
jbm-odoo df44538a8b [IMP] fleet: Add analytic account and mobility card
Create analytic account from fleet (and link it to vehicle) based
on the plate and the fiscal deduction rate (if l10n_hr_payroll_fleet
is installed).

Add on employee a Mobility Card number. This number is set on vehicle
when we put a partner linked to employee on a vehicle.

taskID: 2127641
2019-11-28 10:39:49 +00:00

22 lines
978 B
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="fleet_vehicle_view_form_inherit_account" model="ir.ui.view">
<field name="name">fleet.vehicle.form.inherit.account</field>
<field name="model">fleet.vehicle</field>
<field name="inherit_id" ref="fleet.fleet_vehicle_view_form"/>
<field name="arch" type="xml">
<xpath expr="//group[@name='contract']" position="after">
<group string="Accounting">
<label for="analytic_account_id" string="Analytic Account"/>
<div>
<field name="analytic_account_id" class="oe_inline"/>
<button string="Generate Analytic Account" name="action_generate_analytic_account" type="object" class="btn-link oe_inline" attrs="{'invisible': [('analytic_account_id', '!=', False)]}"/>
</div>
</group>
</xpath>
</field>
</record>
</odoo>