[IMP] fleet: usability improvements
- Fix the display of the licence plat on the kanban view - Store the Driver on fleet.vehicle.log.services to remember who was the driver at the time the service was done. - Rename 'Informations' to 'Information' - Rename 'Driver' to 'Current Driver' on the contract closes odoo/odoo#54051 Taskid: 2289808 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
This commit is contained in:
@@ -33,7 +33,7 @@ class FleetVehicleLogContract(models.Model):
|
||||
help='Date when the coverage of the contract expirates (by default, one year after begin date)')
|
||||
days_left = fields.Integer(compute='_compute_days_left', string='Warning Date')
|
||||
insurer_id = fields.Many2one('res.partner', 'Vendor')
|
||||
purchaser_id = fields.Many2one(related='vehicle_id.driver_id', string='Driver')
|
||||
purchaser_id = fields.Many2one(related='vehicle_id.driver_id', string='Current Driver')
|
||||
ins_ref = fields.Char('Reference', size=64, copy=False)
|
||||
state = fields.Selection([
|
||||
('futur', 'Incoming'),
|
||||
|
||||
@@ -20,13 +20,13 @@
|
||||
<h1><field name="name"/></h1>
|
||||
</div>
|
||||
<group col="2">
|
||||
<group string="Contract Informations">
|
||||
<group string="Contract Information">
|
||||
<field name="user_id"/>
|
||||
<field name="cost_subtype_id"/>
|
||||
<field name="insurer_id"/>
|
||||
<field name="ins_ref"/>
|
||||
</group>
|
||||
<group string="Vehicle Informations">
|
||||
<group string="Vehicle Information">
|
||||
<field name="vehicle_id"/>
|
||||
<field name="purchaser_id"/>
|
||||
</group>
|
||||
|
||||
Reference in New Issue
Block a user