diff options
Diffstat (limited to 'addons/base_address_extended/models/res_country.py')
| -rw-r--r-- | addons/base_address_extended/models/res_country.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/addons/base_address_extended/models/res_country.py b/addons/base_address_extended/models/res_country.py new file mode 100644 index 00000000..38f13f3b --- /dev/null +++ b/addons/base_address_extended/models/res_country.py @@ -0,0 +1,18 @@ +# -*- coding: utf-8 -*- +# Part of Odoo. See LICENSE file for full copyright and licensing details. + +from odoo import fields, models + + +class ResCountry(models.Model): + _inherit = 'res.country' + + street_format = fields.Text( + help="Format to use for streets belonging to this country.\n\n" + "You can use the python-style string pattern with all the fields of the street " + "(for example, use '%(street_name)s, %(street_number)s' if you want to display " + "the street name, followed by a comma and the house number)" + "\n%(street_name)s: the name of the street" + "\n%(street_number)s: the house number" + "\n%(street_number2)s: the door number", + default='%(street_number)s/%(street_number2)s %(street_name)s', required=True) |
