Skip to content
Snippets Groups Projects

Resolve CIT-2 "12.0 create lat long"

Merged Jose Luis Zanotti requested to merge 12.0-CIT-2-create_lat_long into 12.0-stage
+ 2
2
@@ -11,8 +11,8 @@ class CitruxWarehouseLocation(models.Model):
@api.constrains("latitude", "longitude")
def _check_for_valid_coordinates(self):
if not -90 >= self.latitude <= 90:
if not -90 <= self.latitude <= 90:
raise exceptions.ValidationError("Latitude value must be between -90 and 90")
if not -180 >= self.longitude <= 180:
if not -180 <= self.longitude <= 180:
raise exceptions.ValidationError("Longitude value must be between -180 and 180")
Loading