You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
499 B

  1. # -*- coding: utf-8 -*-
  2. # © 2014-2016 Camptocamp SA
  3. # @author: Nicolas Bessi
  4. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
  5. from odoo import models, fields
  6. class ResCountry(models.Model):
  7. """Override default adresses formatting of countries"""
  8. _inherit = 'res.country'
  9. address_format = fields.Text(
  10. default=(
  11. "%(street)s\n%(street2)s\n%(street3)s\n"
  12. "%(city)s %(state_code)s %(zip)s\n"
  13. "%(country_name)s"
  14. )
  15. )