|
|
@ -4,6 +4,7 @@ |
|
|
|
# Author: Nicolas Bessi. Copyright Camptocamp SA |
|
|
|
# Contributor: Pedro Manuel Baeza <pedro.baeza@serviciosbaeza.com> |
|
|
|
# Ignacio Ibeas <ignacio@acysos.com> |
|
|
|
# Cesar Andres <cesar-andres.sanchez@brain-tec.ch> |
|
|
|
# |
|
|
|
# This program is free software: you can redistribute it and/or modify |
|
|
|
# it under the terms of the GNU Affero General Public License as |
|
|
@ -52,6 +53,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 |
|
|
|
|
|
|
|