forked from 0k/web_google_map
-
Notifications
You must be signed in to change notification settings - Fork 0
/
__openerp__.py
81 lines (64 loc) · 2.5 KB
/
__openerp__.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# -*- coding: utf-8 -*-
##############################################################################
#
# Authors: Valentin LAB for simplee.fr and Boris Timokhin, Dmitry
# Zhuravlev-Nevsky for InfoSreda LLC
#
# 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 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': 'Web Map',
'version': '0.4.0',
'category': 'Added functionality / Widgets',
'description': """
OpenERP Web Map
===============
Web Map module brings Google Map support right into OpenERP web-client.
Version for 6.0 was brought by Infosreda LLC. Conversion to 6.1 needed
a full rewrite from simplee.fr and was funded by CARIF/OREF.
Usage
=====
After installation, all "res.partner.address" and "res.partner" views will
be extended with neatly map.
Just type in an address and press "Get coordinates" button. Google Geocoder
will populate latitude and longitude fields. Map marker will be set
accordingly to them.
Not happy with geocoding result? Update latitude and longitude as simply as
dragging marker over Google Map widget.
Save your data and enjoy.
So, you are a module developer
==============================
Good news! In case you want to add Google Map support for your own module, all
you need to do is just put the next string to the view.
::
<field name="map" widget="gmap" />
If you want to use custom model address instead of "res.partner.address" model,
please modify gmap.js source file selectors.
""",
'author': 'simplee.fr - Infosreda LLC',
'website': 'http://github.com/simplee/web_google_map',
'depends': ['base', 'web'],
'init_xml': ['gmap_view.xml'],
'update_xml': [],
'installable': True,
'active': True,
'web': True,
'js': [
'static/src/js/gmap.js',
],
'css': ['static/src/css/gmap.css', ],
'qweb': ['static/src/xml/base.xml', ],
'images': ['images/map.png',],
}