Skip to content

Commit

Permalink
Merge PR #131 into 14.0
Browse files Browse the repository at this point in the history
Signed-off-by etobella
  • Loading branch information
OCA-git-bot committed Nov 27, 2023
2 parents 9294ddc + 53bac5b commit b700c44
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions fleet_vehicle_license_plate_alt/models/fleet_vehicle.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ def _name_search(
("driver_id.name", operator, name),
("license_plate_alt", operator, name),
]
rec = self._search(
return self._search(
expression.AND([domain, args]), limit=limit, access_rights_uid=name_get_uid
)
return models.lazy_name_get(self.browse(rec).with_user(name_get_uid))
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ def setUp(self):

def test_search_vehicle_by_license_plate_alt(self):
"""Check correct searching of vehicles by license_plate_alt."""
vehicle_search = self.env["fleet.vehicle"]._name_search("1-ACK-556")
vehicle_search = self.env["fleet.vehicle"].name_search("1-ACK-556")
self.assertEqual(vehicle_search[0][1], self.vehicle.display_name)

0 comments on commit b700c44

Please sign in to comment.