openerp-canada team mailing list archive
-
openerp-canada team
-
Mailing list archive
-
Message #00003
[Merge] lp:~openerp-canada/openobject-addons/l10n_ca_toponyms into lp:openobject-addons/extra-trunk
Maxime Chambreuil (http://www.savoirfairelinux.com) has proposed merging lp:~openerp-canada/openobject-addons/l10n_ca_toponyms into lp:openobject-addons/extra-trunk.
Requested reviews:
OpenERP Committers (openerp-commiter)
Add canadian provinces and territories
--
https://code.launchpad.net/~openerp-canada/openobject-addons/l10n_ca_toponyms/+merge/40592
Your team OpenERP Canada Team is subscribed to branch lp:~openerp-canada/openobject-addons/l10n_ca_toponyms.
=== added directory 'l10n_ca_toponyms'
=== added file 'l10n_ca_toponyms/__init__.py'
--- l10n_ca_toponyms/__init__.py 1970-01-01 00:00:00 +0000
+++ l10n_ca_toponyms/__init__.py 2010-11-11 00:09:49 +0000
@@ -0,0 +1,22 @@
+# -*- encoding: utf-8 -*-
+##############################################################################
+#
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2010 Savoir-faire Linux (<http://www.savoirfairelinux.com>).
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+##############################################################################
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
+
=== added file 'l10n_ca_toponyms/__openerp__.py'
--- l10n_ca_toponyms/__openerp__.py 1970-01-01 00:00:00 +0000
+++ l10n_ca_toponyms/__openerp__.py 2010-11-11 00:09:49 +0000
@@ -0,0 +1,37 @@
+# -*- encoding: utf-8 -*-
+##############################################################################
+#
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2010 Savoir-faire Linux (<http://www.savoirfairelinux.com>).
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+##############################################################################
+{
+ "name" : "Canada - Provinces, Territories and Cities",
+ "version" : "1.0",
+ "author" : "Savoir-faire Linux",
+ "website" : "http://www.savoirfairelinux.com",
+ "category" : "Localisation/Canada",
+ "description": "Provinces and territories of Canada.",
+ "depends" : ['base'],
+ "license" : "GPL-3",
+ "init_xml" : ["l10n_ca_toponyms.xml"],
+ "update_xml" : [ ],
+ "active" : False,
+ "installable" : True,
+ "certificate" : ''
+}
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
+
=== added file 'l10n_ca_toponyms/l10n_ca_toponyms.xml'
--- l10n_ca_toponyms/l10n_ca_toponyms.xml 1970-01-01 00:00:00 +0000
+++ l10n_ca_toponyms/l10n_ca_toponyms.xml 2010-11-11 00:09:49 +0000
@@ -0,0 +1,82 @@
+<openerp>
+ <data noupdate="1">
+
+ <record model='res.country.state' id='ON'>
+ <field name='name'>Ontario</field>
+ <field name='code'>ON</field>
+ <field search="[('code','=','CA')]" model='res.country' name='country_id'/>
+ </record>
+
+ <record model='res.country.state' id='QC'>
+ <field name='name'>Quebec</field>
+ <field name='code'>QC</field>
+ <field search="[('code','=','CA')]" model='res.country' name='country_id'/>
+ </record>
+
+ <record model='res.country.state' id='AB'>
+ <field name='name'>Alberta</field>
+ <field name='code'>AB</field>
+ <field search="[('code','=','CA')]" model='res.country' name='country_id'/>
+ </record>
+
+ <record model='res.country.state' id='NS'>
+ <field name='name'>Nova Scotia</field>
+ <field name='code'>NS</field>
+ <field search="[('code','=','CA')]" model='res.country' name='country_id'/>
+ </record>
+
+ <record model='res.country.state' id='NB'>
+ <field name='name'>New Brunswick</field>
+ <field name='code'>NB</field>
+ <field search="[('code','=','CA')]" model='res.country' name='country_id'/>
+ </record>
+
+ <record model='res.country.state' id='MB'>
+ <field name='name'>Manitoba</field>
+ <field name='code'>MB</field>
+ <field search="[('code','=','CA')]" model='res.country' name='country_id'/>
+ </record>
+
+ <record model='res.country.state' id='BC'>
+ <field name='name'>British Colombia</field>
+ <field name='code'>BC</field>
+ <field search="[('code','=','CA')]" model='res.country' name='country_id'/>
+ </record>
+
+ <record model='res.country.state' id='PE'>
+ <field name='name'>Prince Edward Island</field>
+ <field name='code'>PE</field>
+ <field search="[('code','=','CA')]" model='res.country' name='country_id'/>
+ </record>
+
+ <record model='res.country.state' id='SK'>
+ <field name='name'>Saskatchewan</field>
+ <field name='code'>SK</field>
+ <field search="[('code','=','CA')]" model='res.country' name='country_id'/>
+ </record>
+
+ <record model='res.country.state' id='NL'>
+ <field name='name'>Newfoundland and Labrador</field>
+ <field name='code'>NL</field>
+ <field search="[('code','=','CA')]" model='res.country' name='country_id'/>
+ </record>
+
+ <record model='res.country.state' id='NT'>
+ <field name='name'>Northwest Territories</field>
+ <field name='code'>NT</field>
+ <field search="[('code','=','CA')]" model='res.country' name='country_id'/>
+ </record>
+
+ <record model='res.country.state' id='YT'>
+ <field name='name'>Yukon</field>
+ <field name='code'>YT</field>
+ <field search="[('code','=','CA')]" model='res.country' name='country_id'/>
+ </record>
+
+ <record model='res.country.state' id='NU'>
+ <field name='name'>Nunavut</field>
+ <field name='code'>NU</field>
+ <field search="[('code','=','CA')]" model='res.country' name='country_id'/>
+ </record>
+ </data>
+</openerp>
Follow ups