Merge lp:~openerp-canada/openobject-addons/l10n_ca_toponyms into lp:openobject-addons/extra-trunk

Status: Merged
Merged at revision: 5093
Proposed branch: lp:~openerp-canada/openobject-addons/l10n_ca_toponyms
Merge into: lp:openobject-addons/extra-trunk
Diff against target: 156 lines (+141/-0)
3 files modified
l10n_ca_toponyms/__init__.py (+22/-0)
l10n_ca_toponyms/__openerp__.py (+37/-0)
l10n_ca_toponyms/l10n_ca_toponyms.xml (+82/-0)
To merge this branch: bzr merge lp:~openerp-canada/openobject-addons/l10n_ca_toponyms
Reviewer Review Type Date Requested Status
OpenERP Core Team Pending
Review via email: mp+40592@code.launchpad.net

Description of the change

Add canadian provinces and territories

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added directory 'l10n_ca_toponyms'
2=== added file 'l10n_ca_toponyms/__init__.py'
3--- l10n_ca_toponyms/__init__.py 1970-01-01 00:00:00 +0000
4+++ l10n_ca_toponyms/__init__.py 2010-11-11 00:09:49 +0000
5@@ -0,0 +1,22 @@
6+# -*- encoding: utf-8 -*-
7+##############################################################################
8+#
9+# OpenERP, Open Source Management Solution
10+# Copyright (C) 2010 Savoir-faire Linux (<http://www.savoirfairelinux.com>).
11+#
12+# This program is free software: you can redistribute it and/or modify
13+# it under the terms of the GNU Affero General Public License as
14+# published by the Free Software Foundation, either version 3 of the
15+# License, or (at your option) any later version.
16+#
17+# This program is distributed in the hope that it will be useful,
18+# but WITHOUT ANY WARRANTY; without even the implied warranty of
19+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20+# GNU Affero General Public License for more details.
21+#
22+# You should have received a copy of the GNU Affero General Public License
23+# along with this program. If not, see <http://www.gnu.org/licenses/>.
24+#
25+##############################################################################
26+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
27+
28
29=== added file 'l10n_ca_toponyms/__openerp__.py'
30--- l10n_ca_toponyms/__openerp__.py 1970-01-01 00:00:00 +0000
31+++ l10n_ca_toponyms/__openerp__.py 2010-11-11 00:09:49 +0000
32@@ -0,0 +1,37 @@
33+# -*- encoding: utf-8 -*-
34+##############################################################################
35+#
36+# OpenERP, Open Source Management Solution
37+# Copyright (C) 2010 Savoir-faire Linux (<http://www.savoirfairelinux.com>).
38+#
39+# This program is free software: you can redistribute it and/or modify
40+# it under the terms of the GNU General Public License as
41+# published by the Free Software Foundation, either version 3 of the
42+# License, or (at your option) any later version.
43+#
44+# This program is distributed in the hope that it will be useful,
45+# but WITHOUT ANY WARRANTY; without even the implied warranty of
46+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
47+# GNU Affero General Public License for more details.
48+#
49+# You should have received a copy of the GNU General Public License
50+# along with this program. If not, see <http://www.gnu.org/licenses/>.
51+#
52+##############################################################################
53+{
54+ "name" : "Canada - Provinces, Territories and Cities",
55+ "version" : "1.0",
56+ "author" : "Savoir-faire Linux",
57+ "website" : "http://www.savoirfairelinux.com",
58+ "category" : "Localisation/Canada",
59+ "description": "Provinces and territories of Canada.",
60+ "depends" : ['base'],
61+ "license" : "GPL-3",
62+ "init_xml" : ["l10n_ca_toponyms.xml"],
63+ "update_xml" : [ ],
64+ "active" : False,
65+ "installable" : True,
66+ "certificate" : ''
67+}
68+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
69+
70
71=== added file 'l10n_ca_toponyms/l10n_ca_toponyms.xml'
72--- l10n_ca_toponyms/l10n_ca_toponyms.xml 1970-01-01 00:00:00 +0000
73+++ l10n_ca_toponyms/l10n_ca_toponyms.xml 2010-11-11 00:09:49 +0000
74@@ -0,0 +1,82 @@
75+<openerp>
76+ <data noupdate="1">
77+
78+ <record model='res.country.state' id='ON'>
79+ <field name='name'>Ontario</field>
80+ <field name='code'>ON</field>
81+ <field search="[('code','=','CA')]" model='res.country' name='country_id'/>
82+ </record>
83+
84+ <record model='res.country.state' id='QC'>
85+ <field name='name'>Quebec</field>
86+ <field name='code'>QC</field>
87+ <field search="[('code','=','CA')]" model='res.country' name='country_id'/>
88+ </record>
89+
90+ <record model='res.country.state' id='AB'>
91+ <field name='name'>Alberta</field>
92+ <field name='code'>AB</field>
93+ <field search="[('code','=','CA')]" model='res.country' name='country_id'/>
94+ </record>
95+
96+ <record model='res.country.state' id='NS'>
97+ <field name='name'>Nova Scotia</field>
98+ <field name='code'>NS</field>
99+ <field search="[('code','=','CA')]" model='res.country' name='country_id'/>
100+ </record>
101+
102+ <record model='res.country.state' id='NB'>
103+ <field name='name'>New Brunswick</field>
104+ <field name='code'>NB</field>
105+ <field search="[('code','=','CA')]" model='res.country' name='country_id'/>
106+ </record>
107+
108+ <record model='res.country.state' id='MB'>
109+ <field name='name'>Manitoba</field>
110+ <field name='code'>MB</field>
111+ <field search="[('code','=','CA')]" model='res.country' name='country_id'/>
112+ </record>
113+
114+ <record model='res.country.state' id='BC'>
115+ <field name='name'>British Colombia</field>
116+ <field name='code'>BC</field>
117+ <field search="[('code','=','CA')]" model='res.country' name='country_id'/>
118+ </record>
119+
120+ <record model='res.country.state' id='PE'>
121+ <field name='name'>Prince Edward Island</field>
122+ <field name='code'>PE</field>
123+ <field search="[('code','=','CA')]" model='res.country' name='country_id'/>
124+ </record>
125+
126+ <record model='res.country.state' id='SK'>
127+ <field name='name'>Saskatchewan</field>
128+ <field name='code'>SK</field>
129+ <field search="[('code','=','CA')]" model='res.country' name='country_id'/>
130+ </record>
131+
132+ <record model='res.country.state' id='NL'>
133+ <field name='name'>Newfoundland and Labrador</field>
134+ <field name='code'>NL</field>
135+ <field search="[('code','=','CA')]" model='res.country' name='country_id'/>
136+ </record>
137+
138+ <record model='res.country.state' id='NT'>
139+ <field name='name'>Northwest Territories</field>
140+ <field name='code'>NT</field>
141+ <field search="[('code','=','CA')]" model='res.country' name='country_id'/>
142+ </record>
143+
144+ <record model='res.country.state' id='YT'>
145+ <field name='name'>Yukon</field>
146+ <field name='code'>YT</field>
147+ <field search="[('code','=','CA')]" model='res.country' name='country_id'/>
148+ </record>
149+
150+ <record model='res.country.state' id='NU'>
151+ <field name='name'>Nunavut</field>
152+ <field name='code'>NU</field>
153+ <field search="[('code','=','CA')]" model='res.country' name='country_id'/>
154+ </record>
155+ </data>
156+</openerp>

Subscribers

People subscribed via source and target branches