mirror of
https://gitlab.com/flectra-community/partner-contact.git
synced 2024-11-15 02:32:04 +00:00
19 lines
478 B
Python
19 lines
478 B
Python
|
# © 2014-2016 Camptocamp SA
|
||
|
# @author: Nicolas Bessi
|
||
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||
|
|
||
|
from flectra import fields, models
|
||
|
|
||
|
|
||
|
class ResCountry(models.Model):
|
||
|
"""Override default adresses formatting of countries"""
|
||
|
_inherit = 'res.country'
|
||
|
|
||
|
address_format = fields.Text(
|
||
|
default=(
|
||
|
"%(street)s\n%(street2)s\n%(street3)s\n"
|
||
|
"%(city)s %(state_code)s %(zip)s\n"
|
||
|
"%(country_name)s"
|
||
|
)
|
||
|
)
|