From bfce569c840ea1dff8346034be45e2fede138e7a Mon Sep 17 00:00:00 2001 From: Nicolas Bessi Date: Fri, 24 Oct 2014 16:53:34 +0200 Subject: [PATCH] Moving new default format to countries --- partner-address-street3/model/partner.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/partner-address-street3/model/partner.py b/partner-address-street3/model/partner.py index 922cd5cd9..c4ebd6442 100644 --- a/partner-address-street3/model/partner.py +++ b/partner-address-street3/model/partner.py @@ -31,6 +31,12 @@ class res_partner(orm.Model): 'street3': fields.char('Street 3'), } + +class res_country(orm.Model): + """Override default adresses formatting of coutries""" + + _inherit = 'res.country' + _defaults = { 'address_format': ("%(street)s\n%(street2)s\n%(street3)s\n" "%(city)s %(state_code)s %(zip)s\n"