[IMP]Add currency field,currency description

bzr revid: hsa@tinyerp.com-20120718123850-g4uywy7b3ovgtymg
This commit is contained in:
Hardik 2012-07-18 18:08:50 +05:30
commit 87576d89ce
6 changed files with 3701 additions and 1668 deletions

View File

@ -32,6 +32,8 @@
'depends': [],
'init_xml': [
'base_data.xml',
'currency_data.xml',
'country_data.xml',
'security/base_security.xml',
'base_menu.xml',
'res/res_security.xml',

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -55,6 +55,7 @@ addresses belonging to this country.\n\nYou can use the python-style string pate
\n%(state_code)s: the code of the state
\n%(country_name)s: the name of the country
\n%(country_code)s: the code of the country"""),
'currency':fields.many2one('res.currency','Currency Code'),
}
_sql_constraints = [
('name_uniq', 'unique (name)',

View File

@ -24,10 +24,15 @@
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Country" version="7.0">
<group col="4">
<field name="name"/>
<field name="code"/>
<field name="address_format" colspan="4" groups="base.group_no_one"/>
<group>
<group>
<field name="name"/>
<field name="currency"/>
<field name="address_format" groups="base.group_no_one"/>
</group>
<group>
<field name="code"/>
</group>
</group>
</form>
</field>