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
=== added directory 'l10n_states'
=== added file 'l10n_states/__init__.py'
--- l10n_states/__init__.py 1970-01-01 00:00:00 +0000
+++ l10n_states/__init__.py 2014-07-02 13:11:59 +0000
@@ -0,0 +1,20 @@
1# -*- coding: utf-8 -*-
2##############################################################################
3#
4# OpenERP, Open Source Management Solution
5# Copyright (C) 2013-2014 Serpent Consulting Services Pvt. Ltd. (<http://www.serpentcs.com>).
6#
7# This program is free software: you can redistribute it and/or modify
8# it under the terms of the GNU Affero General Public License as
9# published by the Free Software Foundation, either version 3 of the
10# License, or (at your option) any later version.
11#
12# This program is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15# GNU Affero General Public License for more details.
16#
17# You should have received a copy of the GNU Affero General Public License
18# along with this program. If not, see <http://www.gnu.org/licenses/>.
19#
20##############################################################################
021
=== added file 'l10n_states/__openerp__.py'
--- l10n_states/__openerp__.py 1970-01-01 00:00:00 +0000
+++ l10n_states/__openerp__.py 2014-07-02 13:11:59 +0000
@@ -0,0 +1,38 @@
1# -*- coding: utf-8 -*-
2##############################################################################
3#
4# OpenERP, Open Source Management Solution
5# Copyright (C) 2013-2014 Serpent Consulting Services Pvt. Ltd. (<http://www.serpentcs.com>).
6#
7# This program is free software: you can redistribute it and/or modify
8# it under the terms of the GNU Affero General Public License as
9# published by the Free Software Foundation, either version 3 of the
10# License, or (at your option) any later version.
11#
12# This program is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15# GNU Affero General Public License for more details.
16#
17# You should have received a copy of the GNU Affero General Public License
18# along with this program. If not, see <http://www.gnu.org/licenses/>.
19#
20##############################################################################
21
22
23{
24 "name": "States of India",
25 "version": "1.0",
26 "author": "Serpent Consulting Services Pvt. Ltd.",
27 "website": "http://www.serpentcs.com",
28 "depends": ["base"],
29 "category": "States",
30 "description":""" This module adds the States of India """,
31 "data": [
32 "data/res.country.state.csv",
33 "res_partner_view.xml"
34 ],
35 "auto_install": False,
36 "installable": True,
37 "application": True
38}
039
=== added directory 'l10n_states/data'
=== added file 'l10n_states/data/res.country.state.csv'
--- l10n_states/data/res.country.state.csv 1970-01-01 00:00:00 +0000
+++ l10n_states/data/res.country.state.csv 2014-07-02 13:11:59 +0000
@@ -0,0 +1,30 @@
1id,name,code,country_id
2state_rajsthan,Rajasthan,RJ,India
3state_madhya pradesh,Madhya Pradesh,MP,India
4state_maharashtra,Maharashtra,MH,India
5state_uttar pradesh,Uttar Pradesh,UP,India
6state_jammu kashmir,Jammu and Kashmir,JK,India
7state_gujarat,Gujarat,GJ,India
8state_karnataka,Karnataka,KA,India
9state_andhra pradesh,Andhra Pradesh,AP,India
10state_odisha,Odisha,OD,India
11state_chhattisgarh,Chhattisgarh,CG,India
12state_tamil nadu,Tamil Nadu,TN,India
13state_telngana,Telangana,TS,India
14state_bihar,Bihar,BR,India
15state_west bengal,West Bengal,WB,India
16state_arunachal pradesh,Arunachal Pradesh,AR,India
17state_jharkhand,Jharkhand,JH,India
18state_assam,Assam,AS,India
19state_himachal pradesh,Himachal Pradesh,HP,India
20state_uttarakhand,Uttarakhand,UK,India
21state_punjab,Punjab,PB,India
22state_haryana,Haryana,HN,India
23state_kerala,Kerala,KL,India
24state_meghalaya,Meghalaya,ML,India
25state_manipur,Manipur,MN,India
26state_mizoram,Mizoram,MZ,India
27state_nagaland,Nagaland,NL,India
28state_tripura,Tripura,TR,India
29state_sikkim,Sikkim,SK,India
30state_delhi,Delhi,DL,India
031
=== added file 'l10n_states/res_partner_view.xml'
--- l10n_states/res_partner_view.xml 1970-01-01 00:00:00 +0000
+++ l10n_states/res_partner_view.xml 2014-07-02 13:11:59 +0000
@@ -0,0 +1,17 @@
1<?xml version="1.0" encoding="UTF-8"?>
2<openerp>
3 <data>
4
5 <!-- Inherited partner form view -->
6 <record model="ir.ui.view" id="inherit_partner_form_view">
7 <field name="name">inherit.partner.form.view</field>
8 <field name="model">res.partner</field>
9 <field name="inherit_id" ref="base.view_partner_form" />
10 <field name="arch" type="xml">
11 <xpath expr="//field[@name='state_id']" position="attributes">
12 <attribute name="domain">[('country_id','=',country_id)]</attribute>
13 </xpath>
14 </field>
15 </record>
16 </data>
17</openerp>
0\ No newline at end of file18\ No newline at end of file
119
=== added directory 'l10n_states/static'
=== added directory 'l10n_states/static/src'
=== added directory 'l10n_states/static/src/img'
=== added file 'l10n_states/static/src/img/icon.png'
2Binary 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 differ20Binary 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