[IMP] fleet: set reminder to 30 days instead of 15

closes odoo/odoo#28643
This commit is contained in:
RomainLibert
2018-11-13 10:27:55 +00:00
parent 55d460b5d5
commit 1009a0a850
+3 -3
View File
@@ -130,9 +130,9 @@ class FleetVehicle(models.Model):
if diff_time < 0:
overdue = True
total += 1
if diff_time < 15 and diff_time >= 0:
due_soon = True
total += 1
if 0 >= diff_time < 30:
due_soon = True
total += 1
if overdue or due_soon:
log_contract = self.env['fleet.vehicle.log.contract'].search([
('vehicle_id', '=', record.id),