Merge lp:~serpentcs/openerp-india/l10n_states_serpentcs into lp:openerp-india/7.0

Proposed by Serpent Consulting Services
Status: Needs review
Proposed branch: lp:~serpentcs/openerp-india/l10n_states_serpentcs
Merge into: lp:openerp-india/7.0
Diff against target: 133 lines (+105/-0)
4 files modified
l10n_states/__init__.py (+20/-0)
l10n_states/__openerp__.py (+38/-0)
l10n_states/data/res.country.state.csv (+30/-0)
l10n_states/res_partner_view.xml (+17/-0)
To merge this branch: bzr merge lp:~serpentcs/openerp-india/l10n_states_serpentcs
Reviewer Review Type Date Requested Status
OpenERP Indian Team Pending
Review via email: mp+225321@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Mantavya Gajjar (Open ERP) (mga) wrote :

Can you please make a pull request on github at https://github.com/Odoo-India/odoo-india, we are this project only on Github

Unmerged revisions

74. By Serpent Consulting Services

[ADD] Added the module l10n_states which adds 29 states of India

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added directory 'l10n_states'
2=== added file 'l10n_states/__init__.py'
3--- l10n_states/__init__.py 1970-01-01 00:00:00 +0000
4+++ l10n_states/__init__.py 2014-07-02 13:11:59 +0000
5@@ -0,0 +1,20 @@
6+# -*- coding: utf-8 -*-
7+##############################################################################
8+#
9+# OpenERP, Open Source Management Solution
10+# Copyright (C) 2013-2014 Serpent Consulting Services Pvt. Ltd. (<http://www.serpentcs.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
27=== added file 'l10n_states/__openerp__.py'
28--- l10n_states/__openerp__.py 1970-01-01 00:00:00 +0000
29+++ l10n_states/__openerp__.py 2014-07-02 13:11:59 +0000
30@@ -0,0 +1,38 @@
31+# -*- coding: utf-8 -*-
32+##############################################################################
33+#
34+# OpenERP, Open Source Management Solution
35+# Copyright (C) 2013-2014 Serpent Consulting Services Pvt. Ltd. (<http://www.serpentcs.com>).
36+#
37+# This program is free software: you can redistribute it and/or modify
38+# it under the terms of the GNU Affero General Public License as
39+# published by the Free Software Foundation, either version 3 of the
40+# License, or (at your option) any later version.
41+#
42+# This program is distributed in the hope that it will be useful,
43+# but WITHOUT ANY WARRANTY; without even the implied warranty of
44+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
45+# GNU Affero General Public License for more details.
46+#
47+# You should have received a copy of the GNU Affero General Public License
48+# along with this program. If not, see <http://www.gnu.org/licenses/>.
49+#
50+##############################################################################
51+
52+
53+{
54+ "name": "States of India",
55+ "version": "1.0",
56+ "author": "Serpent Consulting Services Pvt. Ltd.",
57+ "website": "http://www.serpentcs.com",
58+ "depends": ["base"],
59+ "category": "States",
60+ "description":""" This module adds the States of India """,
61+ "data": [
62+ "data/res.country.state.csv",
63+ "res_partner_view.xml"
64+ ],
65+ "auto_install": False,
66+ "installable": True,
67+ "application": True
68+}
69
70=== added directory 'l10n_states/data'
71=== added file 'l10n_states/data/res.country.state.csv'
72--- l10n_states/data/res.country.state.csv 1970-01-01 00:00:00 +0000
73+++ l10n_states/data/res.country.state.csv 2014-07-02 13:11:59 +0000
74@@ -0,0 +1,30 @@
75+id,name,code,country_id
76+state_rajsthan,Rajasthan,RJ,India
77+state_madhya pradesh,Madhya Pradesh,MP,India
78+state_maharashtra,Maharashtra,MH,India
79+state_uttar pradesh,Uttar Pradesh,UP,India
80+state_jammu kashmir,Jammu and Kashmir,JK,India
81+state_gujarat,Gujarat,GJ,India
82+state_karnataka,Karnataka,KA,India
83+state_andhra pradesh,Andhra Pradesh,AP,India
84+state_odisha,Odisha,OD,India
85+state_chhattisgarh,Chhattisgarh,CG,India
86+state_tamil nadu,Tamil Nadu,TN,India
87+state_telngana,Telangana,TS,India
88+state_bihar,Bihar,BR,India
89+state_west bengal,West Bengal,WB,India
90+state_arunachal pradesh,Arunachal Pradesh,AR,India
91+state_jharkhand,Jharkhand,JH,India
92+state_assam,Assam,AS,India
93+state_himachal pradesh,Himachal Pradesh,HP,India
94+state_uttarakhand,Uttarakhand,UK,India
95+state_punjab,Punjab,PB,India
96+state_haryana,Haryana,HN,India
97+state_kerala,Kerala,KL,India
98+state_meghalaya,Meghalaya,ML,India
99+state_manipur,Manipur,MN,India
100+state_mizoram,Mizoram,MZ,India
101+state_nagaland,Nagaland,NL,India
102+state_tripura,Tripura,TR,India
103+state_sikkim,Sikkim,SK,India
104+state_delhi,Delhi,DL,India
105
106=== added file 'l10n_states/res_partner_view.xml'
107--- l10n_states/res_partner_view.xml 1970-01-01 00:00:00 +0000
108+++ l10n_states/res_partner_view.xml 2014-07-02 13:11:59 +0000
109@@ -0,0 +1,17 @@
110+<?xml version="1.0" encoding="UTF-8"?>
111+<openerp>
112+ <data>
113+
114+ <!-- Inherited partner form view -->
115+ <record model="ir.ui.view" id="inherit_partner_form_view">
116+ <field name="name">inherit.partner.form.view</field>
117+ <field name="model">res.partner</field>
118+ <field name="inherit_id" ref="base.view_partner_form" />
119+ <field name="arch" type="xml">
120+ <xpath expr="//field[@name='state_id']" position="attributes">
121+ <attribute name="domain">[('country_id','=',country_id)]</attribute>
122+ </xpath>
123+ </field>
124+ </record>
125+ </data>
126+</openerp>
127\ No newline at end of file
128
129=== added directory 'l10n_states/static'
130=== added directory 'l10n_states/static/src'
131=== added directory 'l10n_states/static/src/img'
132=== added file 'l10n_states/static/src/img/icon.png'
133Binary files l10n_states/static/src/img/icon.png 1970-01-01 00:00:00 +0000 and l10n_states/static/src/img/icon.png 2014-07-02 13:11:59 +0000 differ

Subscribers

People subscribed via source and target branches