[IMP] fleet: add order date field in fleet vehicle

Currently, when the vehicle is assigned, it is checked from the first contract date, now it
will be checked from the order date

In this Commit, We added order date  field in  fleet vehicle

task-3054981

closes odoo/odoo#107073

Signed-off-by: Kevin Baptiste <kba@odoo.com>
This commit is contained in:
Rohitkumar (roku)
2022-12-13 14:56:00 +01:00
committed by Prakash Prajapati
parent 1d4164b729
commit 41b3559ec9
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -60,6 +60,7 @@ class FleetVehicle(models.Model):
odometer_count = fields.Integer(compute="_compute_count_all", string='Odometer')
history_count = fields.Integer(compute="_compute_count_all", string="Drivers History Count")
next_assignation_date = fields.Date('Assignment Date', help='This is the date at which the car will be available, if not set it means available instantly')
order_date = fields.Date('Order Date')
acquisition_date = fields.Date('Immatriculation Date', required=False,
default=fields.Date.today, help='Date when the vehicle has been immatriculated')
write_off_date = fields.Date('Cancellation Date', tracking=True, help="Date when the vehicle's license plate has been cancelled/removed.")
@@ -98,6 +98,7 @@
</group>
<group string="Vehicle">
<field name="category_id"/>
<field name="order_date"/>
<field name="acquisition_date" attrs="{'invisible': [('vehicle_type', '!=', 'car')]}"/>
<field name="write_off_date" attrs="{'invisible': [('vehicle_type', '!=', 'car')]}"/>
<field name="vin_sn"/>