Merge branch '1.0-sheetal' into 'master'

[ADD]:Alpha3 iso country code field for res.country

See merge request flectra-hq/flectra!21
This commit is contained in:
Parthiv Patel 2018-02-02 12:35:07 +00:00
commit 75b675cb95
3 changed files with 255 additions and 0 deletions

View File

@ -37,6 +37,10 @@ class Country(models.Model):
code = fields.Char(
string='Country Code', size=2,
help='The ISO country code in two chars. \nYou can use this field for quick search.')
iso_code3 = fields.Char(
string='ISO Country Code', size=3,
help='The ISO country code in three chars. \nYou can use this field '
'for quick search.')
address_format = fields.Text(string="Layout in Reports",
help="Display format to use for addresses belonging to this country.\n\n"
"You can use python-style string pattern with all the fields of the address "

File diff suppressed because it is too large Load Diff

View File

@ -11,6 +11,7 @@
<tree string="Country">
<field name="name"/>
<field name="code"/>
<field name="iso_code3"/>
</tree>
</field>
</record>
@ -28,6 +29,7 @@
<field name="name"/>
<field name="currency_id"/>
<field name="code"/>
<field name="iso_code3"/>
</group>
<group>
<field name="phone_code"/>