odoo-addon-web-view-leaflet-map 16.0.1.0.0.5__py3-none-any.whl → 16.0.2.0.0.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- odoo/addons/web_view_leaflet_map/README.rst +2 -33
- odoo/addons/web_view_leaflet_map/__manifest__.py +3 -11
- odoo/addons/web_view_leaflet_map/i18n/fr.po +1 -5
- odoo/addons/web_view_leaflet_map/i18n/it.po +1 -5
- odoo/addons/web_view_leaflet_map/i18n/web_view_leaflet_map.pot +1 -5
- odoo/addons/web_view_leaflet_map/models/__init__.py +0 -1
- odoo/addons/web_view_leaflet_map/readme/CONFIGURE.rst +1 -5
- odoo/addons/web_view_leaflet_map/readme/DESCRIPTION.rst +0 -22
- odoo/addons/web_view_leaflet_map/static/description/index.html +11 -30
- {odoo_addon_web_view_leaflet_map-16.0.1.0.0.5.dist-info → odoo_addon_web_view_leaflet_map-16.0.2.0.0.3.dist-info}/METADATA +7 -40
- odoo_addon_web_view_leaflet_map-16.0.2.0.0.3.dist-info/RECORD +27 -0
- {odoo_addon_web_view_leaflet_map-16.0.1.0.0.5.dist-info → odoo_addon_web_view_leaflet_map-16.0.2.0.0.3.dist-info}/WHEEL +1 -1
- odoo/addons/web_view_leaflet_map/data/ir_config_parameter.xml +0 -20
- odoo/addons/web_view_leaflet_map/demo/ir_config_parameter.xml +0 -16
- odoo/addons/web_view_leaflet_map/models/ir_http.py +0 -20
- odoo/addons/web_view_leaflet_map/readme/CREDITS.rst +0 -1
- odoo/addons/web_view_leaflet_map/static/lib/leaflet/images/layers-2x.png +0 -0
- odoo/addons/web_view_leaflet_map/static/lib/leaflet/images/layers.png +0 -0
- odoo/addons/web_view_leaflet_map/static/lib/leaflet/images/marker-icon-2x.png +0 -0
- odoo/addons/web_view_leaflet_map/static/lib/leaflet/images/marker-icon.png +0 -0
- odoo/addons/web_view_leaflet_map/static/lib/leaflet/images/marker-shadow.png +0 -0
- odoo/addons/web_view_leaflet_map/static/lib/leaflet/leaflet.css +0 -661
- odoo/addons/web_view_leaflet_map/static/lib/leaflet/leaflet.js +0 -6
- odoo/addons/web_view_leaflet_map/static/lib/leaflet/leaflet.js.map +0 -1
- odoo_addon_web_view_leaflet_map-16.0.1.0.0.5.dist-info/RECORD +0 -39
- {odoo_addon_web_view_leaflet_map-16.0.1.0.0.5.dist-info → odoo_addon_web_view_leaflet_map-16.0.2.0.0.3.dist-info}/top_level.txt +0 -0
|
@@ -7,7 +7,7 @@ Leaflet Map View (OpenStreetMap)
|
|
|
7
7
|
!! This file is generated by oca-gen-addon-readme !!
|
|
8
8
|
!! changes will be overwritten. !!
|
|
9
9
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
10
|
-
!! source digest: sha256:
|
|
10
|
+
!! source digest: sha256:f494ec35cbd29ae4bcc5e46a7a30bf5b2261bd449a3b0ba08a95a70d45dbea12
|
|
11
11
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
12
12
|
|
|
13
13
|
.. |badge1| image:: https://img.shields.io/badge/maturity-Alpha-red.png
|
|
@@ -40,28 +40,6 @@ defined. (To define latitude and longitude, refer to the Odoo module ``base_geol
|
|
|
40
40
|
|
|
41
41
|
.. figure:: https://raw.githubusercontent.com/OCA/geospatial/16.0/web_view_leaflet_map/static/description/view_res_partner_map_2.png
|
|
42
42
|
|
|
43
|
-
|
|
44
|
-
**Important Note**
|
|
45
|
-
|
|
46
|
-
The javascript library is opensource and distributed under BSD 2 Licence.
|
|
47
|
-
See : https://github.com/Leaflet/Leaflet/blob/main/LICENSE
|
|
48
|
-
You can so use it freely.
|
|
49
|
-
|
|
50
|
-
However, display maps requires to display layers provided by tiles servers, that
|
|
51
|
-
requires ressources.
|
|
52
|
-
|
|
53
|
-
**For testing purpose**
|
|
54
|
-
|
|
55
|
-
you can use the openStreetMap url ``https://tile.openstreetmap.org/{z}/{x}/{y}.png`` or other, listed in that page : https://wiki.openstreetmap.org/wiki/Tile_servers
|
|
56
|
-
|
|
57
|
-
Apart from very limited testing purposes, you should not use the tiles supplied by OpenStreetMap.org itself. OpenStreetMap is a volunteer-run non-profit body and cannot supply tiles for large-scale commercial use.
|
|
58
|
-
|
|
59
|
-
**Regular / High Usage**
|
|
60
|
-
|
|
61
|
-
- you can contact one of the following companies : https://switch2osm.org/providers/
|
|
62
|
-
|
|
63
|
-
- You can also install yourself your own tiles servers. See documentation : https://switch2osm.org/serving-tiles/
|
|
64
|
-
|
|
65
43
|
.. IMPORTANT::
|
|
66
44
|
This is an alpha version, the data model and design can change at any time without warning.
|
|
67
45
|
Only for development or testing purpose, do not use in production.
|
|
@@ -75,11 +53,7 @@ Apart from very limited testing purposes, you should not use the tiles supplied
|
|
|
75
53
|
Configuration
|
|
76
54
|
=============
|
|
77
55
|
|
|
78
|
-
*
|
|
79
|
-
|
|
80
|
-
* Create or edit the parameter with the key ``leaflet.tile_url``
|
|
81
|
-
|
|
82
|
-
* As a value, set the url of the tiles server you chose. (See description)
|
|
56
|
+
* See configuration of the module ``web_leaflet_lib``.
|
|
83
57
|
|
|
84
58
|
Development
|
|
85
59
|
===========
|
|
@@ -182,11 +156,6 @@ Contributors
|
|
|
182
156
|
|
|
183
157
|
* Sylvain LE GAL (https://www.twitter.com/legalsylvain)
|
|
184
158
|
|
|
185
|
-
Other credits
|
|
186
|
-
~~~~~~~~~~~~~
|
|
187
|
-
|
|
188
|
-
The module embed the Leaflet.js library.
|
|
189
|
-
|
|
190
159
|
Maintainers
|
|
191
160
|
~~~~~~~~~~~
|
|
192
161
|
|
|
@@ -4,9 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
{
|
|
6
6
|
"name": "Leaflet Map View (OpenStreetMap)",
|
|
7
|
-
"summary": "
|
|
8
|
-
"
|
|
9
|
-
"version": "16.0.1.0.0",
|
|
7
|
+
"summary": "Add new 'leaflet_map' view, to display markers.",
|
|
8
|
+
"version": "16.0.2.0.0",
|
|
10
9
|
"development_status": "Alpha",
|
|
11
10
|
"author": "GRAP, Odoo Community Association (OCA)",
|
|
12
11
|
"maintainers": ["legalsylvain"],
|
|
@@ -15,12 +14,7 @@
|
|
|
15
14
|
"category": "Extra Tools",
|
|
16
15
|
"depends": [
|
|
17
16
|
"base_geolocalize",
|
|
18
|
-
|
|
19
|
-
"data": [
|
|
20
|
-
"data/ir_config_parameter.xml",
|
|
21
|
-
],
|
|
22
|
-
"demo": [
|
|
23
|
-
"demo/ir_config_parameter.xml",
|
|
17
|
+
"web_leaflet_lib",
|
|
24
18
|
],
|
|
25
19
|
"assets": {
|
|
26
20
|
"web.assets_backend": [
|
|
@@ -28,8 +22,6 @@
|
|
|
28
22
|
"web_view_leaflet_map/static/src/js/view/map/map_renderer.js",
|
|
29
23
|
"web_view_leaflet_map/static/src/js/view/map/map_view.js",
|
|
30
24
|
"web_view_leaflet_map/static/src/css/web_view_leaflet_map.css",
|
|
31
|
-
"/web_view_leaflet_map/static/lib/leaflet/leaflet.css",
|
|
32
|
-
"/web_view_leaflet_map/static/lib/leaflet/leaflet.js",
|
|
33
25
|
],
|
|
34
26
|
},
|
|
35
27
|
"installable": True,
|
|
@@ -21,11 +21,6 @@ msgstr ""
|
|
|
21
21
|
msgid "Action Window View"
|
|
22
22
|
msgstr "Vue de la Fenêtre d'Action"
|
|
23
23
|
|
|
24
|
-
#. module: web_view_leaflet_map
|
|
25
|
-
#: model:ir.model,name:web_view_leaflet_map.model_ir_http
|
|
26
|
-
msgid "HTTP Routing"
|
|
27
|
-
msgstr "Routage HTTP"
|
|
28
|
-
|
|
29
24
|
#. module: web_view_leaflet_map
|
|
30
25
|
#: model:ir.model.fields.selection,name:web_view_leaflet_map.selection__ir_actions_act_window_view__view_mode__leaflet_map
|
|
31
26
|
#: model:ir.model.fields.selection,name:web_view_leaflet_map.selection__ir_ui_view__type__leaflet_map
|
|
@@ -52,6 +47,7 @@ msgstr "Vue"
|
|
|
52
47
|
#. module: web_view_leaflet_map
|
|
53
48
|
#: model:ir.model.fields,field_description:web_view_leaflet_map.field_ir_actions_act_window_view__view_mode
|
|
54
49
|
#: model:ir.model.fields,field_description:web_view_leaflet_map.field_ir_ui_view__type
|
|
50
|
+
#: model:ir.model.fields,field_description:web_view_leaflet_map.field_website_page__type
|
|
55
51
|
msgid "View Type"
|
|
56
52
|
msgstr "Type de Vue"
|
|
57
53
|
|
|
@@ -21,11 +21,6 @@ msgstr ""
|
|
|
21
21
|
msgid "Action Window View"
|
|
22
22
|
msgstr "Vista maschera azione"
|
|
23
23
|
|
|
24
|
-
#. module: web_view_leaflet_map
|
|
25
|
-
#: model:ir.model,name:web_view_leaflet_map.model_ir_http
|
|
26
|
-
msgid "HTTP Routing"
|
|
27
|
-
msgstr "Instradamento HTTP"
|
|
28
|
-
|
|
29
24
|
#. module: web_view_leaflet_map
|
|
30
25
|
#: model:ir.model.fields.selection,name:web_view_leaflet_map.selection__ir_actions_act_window_view__view_mode__leaflet_map
|
|
31
26
|
#: model:ir.model.fields.selection,name:web_view_leaflet_map.selection__ir_ui_view__type__leaflet_map
|
|
@@ -52,5 +47,6 @@ msgstr "Vista"
|
|
|
52
47
|
#. module: web_view_leaflet_map
|
|
53
48
|
#: model:ir.model.fields,field_description:web_view_leaflet_map.field_ir_actions_act_window_view__view_mode
|
|
54
49
|
#: model:ir.model.fields,field_description:web_view_leaflet_map.field_ir_ui_view__type
|
|
50
|
+
#: model:ir.model.fields,field_description:web_view_leaflet_map.field_website_page__type
|
|
55
51
|
msgid "View Type"
|
|
56
52
|
msgstr "Tipo vista"
|
|
@@ -18,11 +18,6 @@ msgstr ""
|
|
|
18
18
|
msgid "Action Window View"
|
|
19
19
|
msgstr ""
|
|
20
20
|
|
|
21
|
-
#. module: web_view_leaflet_map
|
|
22
|
-
#: model:ir.model,name:web_view_leaflet_map.model_ir_http
|
|
23
|
-
msgid "HTTP Routing"
|
|
24
|
-
msgstr ""
|
|
25
|
-
|
|
26
21
|
#. module: web_view_leaflet_map
|
|
27
22
|
#: model:ir.model.fields.selection,name:web_view_leaflet_map.selection__ir_actions_act_window_view__view_mode__leaflet_map
|
|
28
23
|
#: model:ir.model.fields.selection,name:web_view_leaflet_map.selection__ir_ui_view__type__leaflet_map
|
|
@@ -49,5 +44,6 @@ msgstr ""
|
|
|
49
44
|
#. module: web_view_leaflet_map
|
|
50
45
|
#: model:ir.model.fields,field_description:web_view_leaflet_map.field_ir_actions_act_window_view__view_mode
|
|
51
46
|
#: model:ir.model.fields,field_description:web_view_leaflet_map.field_ir_ui_view__type
|
|
47
|
+
#: model:ir.model.fields,field_description:web_view_leaflet_map.field_website_page__type
|
|
52
48
|
msgid "View Type"
|
|
53
49
|
msgstr ""
|
|
@@ -9,25 +9,3 @@ defined. (To define latitude and longitude, refer to the Odoo module ``base_geol
|
|
|
9
9
|
.. figure:: ../static/description/view_res_partner_map_1.png
|
|
10
10
|
|
|
11
11
|
.. figure:: ../static/description/view_res_partner_map_2.png
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
**Important Note**
|
|
15
|
-
|
|
16
|
-
The javascript library is opensource and distributed under BSD 2 Licence.
|
|
17
|
-
See : https://github.com/Leaflet/Leaflet/blob/main/LICENSE
|
|
18
|
-
You can so use it freely.
|
|
19
|
-
|
|
20
|
-
However, display maps requires to display layers provided by tiles servers, that
|
|
21
|
-
requires ressources.
|
|
22
|
-
|
|
23
|
-
**For testing purpose**
|
|
24
|
-
|
|
25
|
-
you can use the openStreetMap url ``https://tile.openstreetmap.org/{z}/{x}/{y}.png`` or other, listed in that page : https://wiki.openstreetmap.org/wiki/Tile_servers
|
|
26
|
-
|
|
27
|
-
Apart from very limited testing purposes, you should not use the tiles supplied by OpenStreetMap.org itself. OpenStreetMap is a volunteer-run non-profit body and cannot supply tiles for large-scale commercial use.
|
|
28
|
-
|
|
29
|
-
**Regular / High Usage**
|
|
30
|
-
|
|
31
|
-
- you can contact one of the following companies : https://switch2osm.org/providers/
|
|
32
|
-
|
|
33
|
-
- You can also install yourself your own tiles servers. See documentation : https://switch2osm.org/serving-tiles/
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
|
2
1
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
3
2
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
4
3
|
<head>
|
|
@@ -9,10 +8,11 @@
|
|
|
9
8
|
|
|
10
9
|
/*
|
|
11
10
|
:Author: David Goodger (goodger@python.org)
|
|
12
|
-
:Id: $Id: html4css1.css
|
|
11
|
+
:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $
|
|
13
12
|
:Copyright: This stylesheet has been placed in the public domain.
|
|
14
13
|
|
|
15
14
|
Default cascading style sheet for the HTML output of Docutils.
|
|
15
|
+
Despite the name, some widely supported CSS2 features are used.
|
|
16
16
|
|
|
17
17
|
See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
|
|
18
18
|
customize this style sheet.
|
|
@@ -275,7 +275,7 @@ pre.literal-block, pre.doctest-block, pre.math, pre.code {
|
|
|
275
275
|
margin-left: 2em ;
|
|
276
276
|
margin-right: 2em }
|
|
277
277
|
|
|
278
|
-
pre.code .ln { color:
|
|
278
|
+
pre.code .ln { color: gray; } /* line numbers */
|
|
279
279
|
pre.code, code { background-color: #eeeeee }
|
|
280
280
|
pre.code .comment, code .comment { color: #5C6576 }
|
|
281
281
|
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
|
|
@@ -301,7 +301,7 @@ span.option {
|
|
|
301
301
|
span.pre {
|
|
302
302
|
white-space: pre }
|
|
303
303
|
|
|
304
|
-
span.problematic {
|
|
304
|
+
span.problematic, pre.problematic {
|
|
305
305
|
color: red }
|
|
306
306
|
|
|
307
307
|
span.section-subtitle {
|
|
@@ -367,7 +367,7 @@ ul.auto-toc {
|
|
|
367
367
|
!! This file is generated by oca-gen-addon-readme !!
|
|
368
368
|
!! changes will be overwritten. !!
|
|
369
369
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
370
|
-
!! source digest: sha256:
|
|
370
|
+
!! source digest: sha256:f494ec35cbd29ae4bcc5e46a7a30bf5b2261bd449a3b0ba08a95a70d45dbea12
|
|
371
371
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
|
372
372
|
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Alpha" src="https://img.shields.io/badge/maturity-Alpha-red.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/geospatial/tree/16.0/web_view_leaflet_map"><img alt="OCA/geospatial" src="https://img.shields.io/badge/github-OCA%2Fgeospatial-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/geospatial-16-0/geospatial-16-0-web_view_leaflet_map"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/geospatial&target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
|
|
373
373
|
<p>This module extends odoo views, to add a new kind of view, named <tt class="docutils literal">leaflet_map</tt>
|
|
@@ -382,20 +382,6 @@ defined. (To define latitude and longitude, refer to the Odoo module <tt class="
|
|
|
382
382
|
<div class="figure">
|
|
383
383
|
<img alt="https://raw.githubusercontent.com/OCA/geospatial/16.0/web_view_leaflet_map/static/description/view_res_partner_map_2.png" src="https://raw.githubusercontent.com/OCA/geospatial/16.0/web_view_leaflet_map/static/description/view_res_partner_map_2.png" />
|
|
384
384
|
</div>
|
|
385
|
-
<p><strong>Important Note</strong></p>
|
|
386
|
-
<p>The javascript library is opensource and distributed under BSD 2 Licence.
|
|
387
|
-
See : <a class="reference external" href="https://github.com/Leaflet/Leaflet/blob/main/LICENSE">https://github.com/Leaflet/Leaflet/blob/main/LICENSE</a>
|
|
388
|
-
You can so use it freely.</p>
|
|
389
|
-
<p>However, display maps requires to display layers provided by tiles servers, that
|
|
390
|
-
requires ressources.</p>
|
|
391
|
-
<p><strong>For testing purpose</strong></p>
|
|
392
|
-
<p>you can use the openStreetMap url <tt class="docutils literal"><span class="pre">https://tile.openstreetmap.org/{z}/{x}/{y}.png</span></tt> or other, listed in that page : <a class="reference external" href="https://wiki.openstreetmap.org/wiki/Tile_servers">https://wiki.openstreetmap.org/wiki/Tile_servers</a></p>
|
|
393
|
-
<p>Apart from very limited testing purposes, you should not use the tiles supplied by OpenStreetMap.org itself. OpenStreetMap is a volunteer-run non-profit body and cannot supply tiles for large-scale commercial use.</p>
|
|
394
|
-
<p><strong>Regular / High Usage</strong></p>
|
|
395
|
-
<ul class="simple">
|
|
396
|
-
<li>you can contact one of the following companies : <a class="reference external" href="https://switch2osm.org/providers/">https://switch2osm.org/providers/</a></li>
|
|
397
|
-
<li>You can also install yourself your own tiles servers. See documentation : <a class="reference external" href="https://switch2osm.org/serving-tiles/">https://switch2osm.org/serving-tiles/</a></li>
|
|
398
|
-
</ul>
|
|
399
385
|
<div class="admonition important">
|
|
400
386
|
<p class="first admonition-title">Important</p>
|
|
401
387
|
<p class="last">This is an alpha version, the data model and design can change at any time without warning.
|
|
@@ -412,8 +398,7 @@ Only for development or testing purpose, do not use in production.
|
|
|
412
398
|
<li><a class="reference internal" href="#credits" id="toc-entry-5">Credits</a><ul>
|
|
413
399
|
<li><a class="reference internal" href="#authors" id="toc-entry-6">Authors</a></li>
|
|
414
400
|
<li><a class="reference internal" href="#contributors" id="toc-entry-7">Contributors</a></li>
|
|
415
|
-
<li><a class="reference internal" href="#
|
|
416
|
-
<li><a class="reference internal" href="#maintainers" id="toc-entry-9">Maintainers</a></li>
|
|
401
|
+
<li><a class="reference internal" href="#maintainers" id="toc-entry-8">Maintainers</a></li>
|
|
417
402
|
</ul>
|
|
418
403
|
</li>
|
|
419
404
|
</ul>
|
|
@@ -421,9 +406,7 @@ Only for development or testing purpose, do not use in production.
|
|
|
421
406
|
<div class="section" id="configuration">
|
|
422
407
|
<h1><a class="toc-backref" href="#toc-entry-1">Configuration</a></h1>
|
|
423
408
|
<ul class="simple">
|
|
424
|
-
<li>
|
|
425
|
-
<li>Create or edit the parameter with the key <tt class="docutils literal">leaflet.tile_url</tt></li>
|
|
426
|
-
<li>As a value, set the url of the tiles server you chose. (See description)</li>
|
|
409
|
+
<li>See configuration of the module <tt class="docutils literal">web_leaflet_lib</tt>.</li>
|
|
427
410
|
</ul>
|
|
428
411
|
</div>
|
|
429
412
|
<div class="section" id="development">
|
|
@@ -521,14 +504,12 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
|
|
|
521
504
|
<li>Sylvain LE GAL (<a class="reference external" href="https://www.twitter.com/legalsylvain">https://www.twitter.com/legalsylvain</a>)</li>
|
|
522
505
|
</ul>
|
|
523
506
|
</div>
|
|
524
|
-
<div class="section" id="other-credits">
|
|
525
|
-
<h2><a class="toc-backref" href="#toc-entry-8">Other credits</a></h2>
|
|
526
|
-
<p>The module embed the Leaflet.js library.</p>
|
|
527
|
-
</div>
|
|
528
507
|
<div class="section" id="maintainers">
|
|
529
|
-
<h2><a class="toc-backref" href="#toc-entry-
|
|
508
|
+
<h2><a class="toc-backref" href="#toc-entry-8">Maintainers</a></h2>
|
|
530
509
|
<p>This module is maintained by the OCA.</p>
|
|
531
|
-
<a class="reference external image-reference" href="https://odoo-community.org"
|
|
510
|
+
<a class="reference external image-reference" href="https://odoo-community.org">
|
|
511
|
+
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
|
|
512
|
+
</a>
|
|
532
513
|
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
|
|
533
514
|
mission is to support the collaborative development of Odoo features and
|
|
534
515
|
promote its widespread use.</p>
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
|
-
Name: odoo-addon-
|
|
3
|
-
Version: 16.0.
|
|
4
|
-
Summary:
|
|
2
|
+
Name: odoo-addon-web_view_leaflet_map
|
|
3
|
+
Version: 16.0.2.0.0.3
|
|
4
|
+
Summary: Add new 'leaflet_map' view, to display markers.
|
|
5
5
|
Home-page: https://github.com/OCA/geospatial
|
|
6
6
|
Author: GRAP, Odoo Community Association (OCA)
|
|
7
7
|
Author-email: support@odoo-community.org
|
|
8
8
|
License: AGPL-3
|
|
9
|
-
Platform: UNKNOWN
|
|
10
9
|
Classifier: Programming Language :: Python
|
|
11
10
|
Classifier: Framework :: Odoo
|
|
12
11
|
Classifier: Framework :: Odoo :: 16.0
|
|
13
12
|
Classifier: License :: OSI Approved :: GNU Affero General Public License v3
|
|
14
13
|
Classifier: Development Status :: 3 - Alpha
|
|
15
14
|
Requires-Python: >=3.10
|
|
16
|
-
Requires-Dist: odoo
|
|
15
|
+
Requires-Dist: odoo-addon-web-leaflet-lib<16.1dev,>=16.0dev
|
|
16
|
+
Requires-Dist: odoo<16.1dev,>=16.0a
|
|
17
17
|
|
|
18
18
|
================================
|
|
19
19
|
Leaflet Map View (OpenStreetMap)
|
|
@@ -24,7 +24,7 @@ Leaflet Map View (OpenStreetMap)
|
|
|
24
24
|
!! This file is generated by oca-gen-addon-readme !!
|
|
25
25
|
!! changes will be overwritten. !!
|
|
26
26
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
27
|
-
!! source digest: sha256:
|
|
27
|
+
!! source digest: sha256:f494ec35cbd29ae4bcc5e46a7a30bf5b2261bd449a3b0ba08a95a70d45dbea12
|
|
28
28
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
29
29
|
|
|
30
30
|
.. |badge1| image:: https://img.shields.io/badge/maturity-Alpha-red.png
|
|
@@ -57,28 +57,6 @@ defined. (To define latitude and longitude, refer to the Odoo module ``base_geol
|
|
|
57
57
|
|
|
58
58
|
.. figure:: https://raw.githubusercontent.com/OCA/geospatial/16.0/web_view_leaflet_map/static/description/view_res_partner_map_2.png
|
|
59
59
|
|
|
60
|
-
|
|
61
|
-
**Important Note**
|
|
62
|
-
|
|
63
|
-
The javascript library is opensource and distributed under BSD 2 Licence.
|
|
64
|
-
See : https://github.com/Leaflet/Leaflet/blob/main/LICENSE
|
|
65
|
-
You can so use it freely.
|
|
66
|
-
|
|
67
|
-
However, display maps requires to display layers provided by tiles servers, that
|
|
68
|
-
requires ressources.
|
|
69
|
-
|
|
70
|
-
**For testing purpose**
|
|
71
|
-
|
|
72
|
-
you can use the openStreetMap url ``https://tile.openstreetmap.org/{z}/{x}/{y}.png`` or other, listed in that page : https://wiki.openstreetmap.org/wiki/Tile_servers
|
|
73
|
-
|
|
74
|
-
Apart from very limited testing purposes, you should not use the tiles supplied by OpenStreetMap.org itself. OpenStreetMap is a volunteer-run non-profit body and cannot supply tiles for large-scale commercial use.
|
|
75
|
-
|
|
76
|
-
**Regular / High Usage**
|
|
77
|
-
|
|
78
|
-
- you can contact one of the following companies : https://switch2osm.org/providers/
|
|
79
|
-
|
|
80
|
-
- You can also install yourself your own tiles servers. See documentation : https://switch2osm.org/serving-tiles/
|
|
81
|
-
|
|
82
60
|
.. IMPORTANT::
|
|
83
61
|
This is an alpha version, the data model and design can change at any time without warning.
|
|
84
62
|
Only for development or testing purpose, do not use in production.
|
|
@@ -92,11 +70,7 @@ Apart from very limited testing purposes, you should not use the tiles supplied
|
|
|
92
70
|
Configuration
|
|
93
71
|
=============
|
|
94
72
|
|
|
95
|
-
*
|
|
96
|
-
|
|
97
|
-
* Create or edit the parameter with the key ``leaflet.tile_url``
|
|
98
|
-
|
|
99
|
-
* As a value, set the url of the tiles server you chose. (See description)
|
|
73
|
+
* See configuration of the module ``web_leaflet_lib``.
|
|
100
74
|
|
|
101
75
|
Development
|
|
102
76
|
===========
|
|
@@ -199,11 +173,6 @@ Contributors
|
|
|
199
173
|
|
|
200
174
|
* Sylvain LE GAL (https://www.twitter.com/legalsylvain)
|
|
201
175
|
|
|
202
|
-
Other credits
|
|
203
|
-
~~~~~~~~~~~~~
|
|
204
|
-
|
|
205
|
-
The module embed the Leaflet.js library.
|
|
206
|
-
|
|
207
176
|
Maintainers
|
|
208
177
|
~~~~~~~~~~~
|
|
209
178
|
|
|
@@ -228,5 +197,3 @@ Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
|
|
|
228
197
|
This module is part of the `OCA/geospatial <https://github.com/OCA/geospatial/tree/16.0/web_view_leaflet_map>`_ project on GitHub.
|
|
229
198
|
|
|
230
199
|
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
|
|
231
|
-
|
|
232
|
-
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
odoo/addons/web_view_leaflet_map/README.rst,sha256=hp2kff2j0OVfSstst-HROIE_pF4uOCDLSMUUBbPzCEo,7201
|
|
2
|
+
odoo/addons/web_view_leaflet_map/__init__.py,sha256=lHbcD_3Jhk02gKyANjQ1Bif8uknO8qLtRSK4lJNPeeQ,55
|
|
3
|
+
odoo/addons/web_view_leaflet_map/__manifest__.py,sha256=pts6vwj0Re4Jnk6XGKbNNhphp6BaVAiHRGPnUTIzhJ8,1076
|
|
4
|
+
odoo/addons/web_view_leaflet_map/hooks.py,sha256=1ljtgfKjP-otnxGEnMbDpb83VRQamicLRhNe96iioB4,682
|
|
5
|
+
odoo/addons/web_view_leaflet_map/i18n/fr.po,sha256=xSXoIxogfegwOztumHeW5R4xxUooxHsDPCcoqQEgm0k,2102
|
|
6
|
+
odoo/addons/web_view_leaflet_map/i18n/it.po,sha256=RjAJVMbLRt2eJZ-YG2gb_yGGEfB9idHfZZt7Y_ehU0Y,1761
|
|
7
|
+
odoo/addons/web_view_leaflet_map/i18n/web_view_leaflet_map.pot,sha256=F366HXH8JVaf88r3ylbz6G4luSbL9yYBBWXPeQMzoa8,1544
|
|
8
|
+
odoo/addons/web_view_leaflet_map/models/__init__.py,sha256=K0P7QAr_t6UHNt0nbpDhqpH4-zILR1hpfNip3VUtouc,82
|
|
9
|
+
odoo/addons/web_view_leaflet_map/models/ir_act_window_view.py,sha256=NfjklK_VNBCuuXn0X22uQzWr9iOJWeT2oN-qXwwDhqQ,499
|
|
10
|
+
odoo/addons/web_view_leaflet_map/models/ir_ui_view.py,sha256=lSuUMUNxQsgE8lAVEiDK3RNtaUavmNCIM7F2AUep7dc,404
|
|
11
|
+
odoo/addons/web_view_leaflet_map/models/res_users.py,sha256=SmYcwiVXifiT8pDlb1pdAYnlvnodZ8oOrJHr6GQlle4,545
|
|
12
|
+
odoo/addons/web_view_leaflet_map/readme/CONFIGURE.rst,sha256=8jdJsLPTrE4YaSqWebS8BZffEy6-2-EoD_SxBIfC68s,54
|
|
13
|
+
odoo/addons/web_view_leaflet_map/readme/CONTRIBUTORS.rst,sha256=lOu65FBimdkBCJRQ-0POIP_rRFwZ_plzxBFFLHkxhrQ,56
|
|
14
|
+
odoo/addons/web_view_leaflet_map/readme/DESCRIPTION.rst,sha256=g6qwKngb2Npjk2WhWLXYE5U_ljA1hH5eTmQ0ndq4l08,645
|
|
15
|
+
odoo/addons/web_view_leaflet_map/readme/DEVELOP.rst,sha256=30B5yD29990smVfoaoEPicEfynPL0gzQBFv72Lhd_6E,2415
|
|
16
|
+
odoo/addons/web_view_leaflet_map/readme/ROADMAP.rst,sha256=B8jPgsiSeXhHfZCrf9p5v-iSFVrTYL31-iDbifHm3Zk,496
|
|
17
|
+
odoo/addons/web_view_leaflet_map/static/description/icon.png,sha256=6xBPJauaFOF0KDHfHgQopSc28kKvxMaeoQFQWZtfZDo,9455
|
|
18
|
+
odoo/addons/web_view_leaflet_map/static/description/index.html,sha256=0MplKuYJ5vzI0DI-36UZV9da5vFELhVzaJzvgZGwDb4,21168
|
|
19
|
+
odoo/addons/web_view_leaflet_map/static/description/res_partner_map.png,sha256=vyOw2l7n7k4-jYgTT-r31vA4h8kSnjMo0WW0iNEzRi4,390800
|
|
20
|
+
odoo/addons/web_view_leaflet_map/static/src/css/web_view_leaflet_map.css,sha256=Tp3SfDNuSPCN32sh_HlSmiF3AYWlvxlzSp8u3NCAHiA,1527
|
|
21
|
+
odoo/addons/web_view_leaflet_map/static/src/js/view/view_registry.js,sha256=lBbqZDEwa5osnDjaryjbSVeII87oosy4GR0M61sRaok,255
|
|
22
|
+
odoo/addons/web_view_leaflet_map/static/src/js/view/map/map_renderer.js,sha256=f8Y-Q-bys7GzupqPc4MUJjRBuAnDg5o-QWFf9vbeYOM,6934
|
|
23
|
+
odoo/addons/web_view_leaflet_map/static/src/js/view/map/map_view.js,sha256=3HDassi20Lc-q1A90EZAcJD0bE8z_KeRRymGJORxzoM,1022
|
|
24
|
+
odoo_addon_web_view_leaflet_map-16.0.2.0.0.3.dist-info/METADATA,sha256=hFRR83DwoDw3g7OWl1mnEDHCtHlllf0kuikrLSgZ4KE,7841
|
|
25
|
+
odoo_addon_web_view_leaflet_map-16.0.2.0.0.3.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
|
|
26
|
+
odoo_addon_web_view_leaflet_map-16.0.2.0.0.3.dist-info/top_level.txt,sha256=qBj40grFkGOfDZ2WDSw3y1RnDlgG0u8rP8pvGNdbz4w,5
|
|
27
|
+
odoo_addon_web_view_leaflet_map-16.0.2.0.0.3.dist-info/RECORD,,
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8" ?>
|
|
2
|
-
<!--
|
|
3
|
-
Copyright (C) 2022 - Today: GRAP (http://www.grap.coop)
|
|
4
|
-
@author: Sylvain LE GAL (https://twitter.com/legalsylvain)
|
|
5
|
-
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
|
6
|
-
-->
|
|
7
|
-
<odoo noupdate="1">
|
|
8
|
-
<record
|
|
9
|
-
id="config_parameter_leaflet_copyright"
|
|
10
|
-
model="ir.config_parameter"
|
|
11
|
-
forcecreate="True"
|
|
12
|
-
>
|
|
13
|
-
<field name="key">leaflet.copyright</field>
|
|
14
|
-
<field
|
|
15
|
-
name="value"
|
|
16
|
-
><![CDATA[
|
|
17
|
-
© <a href='http://www.openstreetmap.org/copyright'>OpenStreetMap</a>]]>
|
|
18
|
-
</field>
|
|
19
|
-
</record>
|
|
20
|
-
</odoo>
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8" ?>
|
|
2
|
-
<!--
|
|
3
|
-
Copyright (C) 2022 - Today: GRAP (http://www.grap.coop)
|
|
4
|
-
@author: Sylvain LE GAL (https://twitter.com/legalsylvain)
|
|
5
|
-
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
|
6
|
-
-->
|
|
7
|
-
<odoo noupdate="1">
|
|
8
|
-
<record
|
|
9
|
-
id="config_parameter_leaflet_tile_url"
|
|
10
|
-
model="ir.config_parameter"
|
|
11
|
-
forcecreate="True"
|
|
12
|
-
>
|
|
13
|
-
<field name="key">leaflet.tile_url</field>
|
|
14
|
-
<field name="value">https://tile.openstreetmap.org/{z}/{x}/{y}.png</field>
|
|
15
|
-
</record>
|
|
16
|
-
</odoo>
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# Copyright (C) 2022 - Today: GRAP (http://www.grap.coop)
|
|
2
|
-
# @author: Sylvain LE GAL (https://twitter.com/legalsylvain)
|
|
3
|
-
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
|
4
|
-
|
|
5
|
-
from odoo import models
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
class Http(models.AbstractModel):
|
|
9
|
-
_inherit = "ir.http"
|
|
10
|
-
|
|
11
|
-
def session_info(self):
|
|
12
|
-
result = super(Http, self).session_info()
|
|
13
|
-
config = self.env["ir.config_parameter"].sudo()
|
|
14
|
-
result.update(
|
|
15
|
-
{
|
|
16
|
-
"leaflet.tile_url": config.get_param("leaflet.tile_url", default=""),
|
|
17
|
-
"leaflet.copyright": config.get_param("leaflet.copyright", default=""),
|
|
18
|
-
}
|
|
19
|
-
)
|
|
20
|
-
return result
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
The module embed the Leaflet.js library.
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|