[[FIX] country code not required

bzr revid: fp@tinyerp.com-20121026065143-bnwzfum1zp8p3wrv
This commit is contained in:
Fabien Pinckaers 2012-10-26 08:51:43 +02:00
parent 93be12ab1e
commit 2776f5b7e6
2 changed files with 2 additions and 3 deletions

View File

@ -47,7 +47,7 @@ class Country(osv.osv):
help='The full name of the country.', required=True, translate=True),
'code': fields.char('Country Code', size=2,
help='The ISO country code in two chars.\n'
'You can use this field for quick search.', required=True),
'You can use this field for quick search.'),
'address_format': fields.text('Address Format', help="""You can state here the usual format to use for the \
addresses belonging to this country.\n\nYou can use the python-style string patern with all the field of the address \
(for example, use '%(street)s' to display the field 'street') plus

View File

@ -31,8 +31,7 @@
<field name="code"/>
</group>
</group>
<label for="address_format" string="Address Format"/>
<field name="address_format" colspan="4" groups="base.group_no_one"/>
<field name="address_format" groups="base.group_no_one" placeholder="Address format..."/>
</form>
</field>
</record>