bemade_geo_distance: fix to public method signature in base.geo_router
This commit is contained in:
parent
8fa832ccac
commit
cb5a3acace
2 changed files with 2 additions and 2 deletions
|
|
@ -29,7 +29,7 @@ class GeoRouter(models.AbstractModel):
|
|||
|
||||
@api.model
|
||||
def get_driving_distance_time(self, origin, destination, departure_time: datetime.datetime = None,
|
||||
arrival_time: datetime.date = None, units: units = 'metric',
|
||||
arrival_time: datetime.datetime = None, units: units = 'metric',
|
||||
avoid_tolls=False, avoid_highways=False, avoid_ferries=False) -> (float, float):
|
||||
""" Calculates the route between two addresses and returns the distance it either in Kilometers or Miles and
|
||||
the time in minutes.
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ class TestGeoRouter(TransactionCase):
|
|||
arrival_time_utc = arrival_time_local.astimezone(pytz.utc)
|
||||
arrival_time = arrival_time_utc.strftime('%Y-%m-%dT%H:%M:%S.%fZ')
|
||||
print(arrival_time)
|
||||
|
||||
|
||||
distance, time = self.env['base.geo_router'].get_driving_distance_time(bemade, montreal,
|
||||
arrival_time=arrival_time)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue