Skip to content

Commit

Permalink
[MIG] fleet_vehicle_history_date_end: Migration to 15.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kaynnan committed Jul 11, 2023
1 parent 3d737a6 commit 5609278
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 18 deletions.
2 changes: 1 addition & 1 deletion fleet_vehicle_history_date_end/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"development_status": "Production/Stable",
"website": "https://github.com/OCA/fleet",
"license": "AGPL-3",
"version": "14.0.1.0.0",
"version": "15.0.1.0.0",
"depends": ["fleet"],
"data": [],
"installable": True,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,27 +1,14 @@
# Copyright 2020-Present Druidoo - Manuel Marquez <[email protected]>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from odoo.tests import tagged
from odoo.tests.common import TransactionCase


@tagged("-standard")
class TestFleetVehicleDateEnd(TransactionCase):
def setUp(self):
super().setUp()
self.vehicle = self.env["fleet.vehicle"].create(
{
"license_plate": "1-ACK-555",
"vin_sn": "883333",
"color": "Black",
"location": "Grand-Rosiere",
"doors": 5,
"driver_id": self.env.ref("base.user_demo_res_partner").id,
"odometer_unit": "kilometers",
"car_value": 20000,
"model_id": self.env.ref("fleet.model_astra").id,
}
)
@classmethod
def setUpClass(cls):
super(TestFleetVehicleDateEnd, cls).setUpClass()
cls.vehicle = cls.env.ref("fleet.vehicle_1")

def test_change_driver_history_date_end(self):
"""Check correct assignation of date_end in history of previous driver."""
Expand Down

0 comments on commit 5609278

Please sign in to comment.