Browse Source

[ADD] add continent datas

pull/2/head
Romain Deheele 11 years ago
parent
commit
43bc2667cf
  1. 26
      base_continent/__openerp__.py
  2. 27
      base_continent/base_continent_data.xml

26
base_continent/__openerp__.py

@ -20,21 +20,23 @@
############################################################################## ##############################################################################
{"name": "Continent management",
"version": "1.0",
"depends": ["base"],
"author": "Camptocamp",
"license": "AGPL-3",
"description": """
{'name': 'Continent management',
'version': '1.0',
'depends': ['base'],
'author': 'Camptocamp',
'license': 'AGPL-3',
'description': """
This module introduces continent management. This module introduces continent management.
============================================ ============================================
Links continents to countries, Links continents to countries,
adds continent field on partner form adds continent field on partner form
""", """,
"category": "Generic Modules/Base",
"init_xml": [],
"demo_xml": [],
"update_xml": ["base_continent_view.xml"],
"active": False,
"installable": True,
'category': 'Generic Modules/Base',
'init_xml': [],
'demo_xml': [],
'update_xml': [
'base_continent_view.xml',
'base_continent_data.xml'],
'active': False,
'installable': True,
} }

27
base_continent/base_continent_data.xml

@ -0,0 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data noupdate="1">
<record id="af" model="res.continent">
<field name="name">Africa</field>
</record>
<record id="an" model="res.continent">
<field name="name">Antarctica</field>
</record>
<record id="as" model="res.continent">
<field name="name">Asia</field>
</record>
<record id="eu" model="res.continent">
<field name="name">Europe</field>
</record>
<record id="na" model="res.continent">
<field name="name">North America</field>
</record>
<record id="oc" model="res.continent">
<field name="name">Oceania</field>
</record>
<record id="sa" model="res.continent">
<field name="name">South America</field>
</record>
</data>
</openerp>
Loading…
Cancel
Save