[[FIX] country code not required
bzr revid: fp@tinyerp.com-20121026065143-bnwzfum1zp8p3wrv
This commit is contained in:
parent
93be12ab1e
commit
2776f5b7e6
|
@ -47,7 +47,7 @@ class Country(osv.osv):
|
||||||
help='The full name of the country.', required=True, translate=True),
|
help='The full name of the country.', required=True, translate=True),
|
||||||
'code': fields.char('Country Code', size=2,
|
'code': fields.char('Country Code', size=2,
|
||||||
help='The ISO country code in two chars.\n'
|
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 \
|
'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 \
|
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
|
(for example, use '%(street)s' to display the field 'street') plus
|
||||||
|
|
|
@ -31,8 +31,7 @@
|
||||||
<field name="code"/>
|
<field name="code"/>
|
||||||
</group>
|
</group>
|
||||||
</group>
|
</group>
|
||||||
<label for="address_format" string="Address Format"/>
|
<field name="address_format" groups="base.group_no_one" placeholder="Address format..."/>
|
||||||
<field name="address_format" colspan="4" groups="base.group_no_one"/>
|
|
||||||
</form>
|
</form>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
Loading…
Reference in New Issue