diff --git a/base_location/better_zip.py b/base_location/better_zip.py index 96e95bdd8..6d109b43d 100644 --- a/base_location/better_zip.py +++ b/base_location/better_zip.py @@ -4,6 +4,7 @@ # Author: Nicolas Bessi. Copyright Camptocamp SA # Contributor: Pedro Manuel Baeza # Ignacio Ibeas +# Cesar Andres # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as @@ -51,6 +52,7 @@ class BetterZip(orm.Model): name.append(bzip.state_id.name) if bzip.country_id: name.append(bzip.country_id.name) + name = [str(x) for x in name if x] res.append((bzip.id, ", ".join(name))) return res