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
483 B

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