odoo-addon-web-view-leaflet-map 16.0.2.0.0.3__py3-none-any.whl → 18.0.1.1.2.1__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.
Files changed (37) hide show
  1. odoo/addons/web_view_leaflet_map/README.rst +96 -83
  2. odoo/addons/web_view_leaflet_map/__manifest__.py +7 -6
  3. odoo/addons/web_view_leaflet_map/hooks.py +4 -4
  4. odoo/addons/web_view_leaflet_map/i18n/fr.po +7 -5
  5. odoo/addons/web_view_leaflet_map/i18n/it.po +7 -5
  6. odoo/addons/web_view_leaflet_map/i18n/web_view_leaflet_map.pot +3 -5
  7. odoo/addons/web_view_leaflet_map/models/ir_ui_view.py +3 -0
  8. odoo/addons/web_view_leaflet_map/readme/CONFIGURE.md +1 -0
  9. odoo/addons/web_view_leaflet_map/readme/CONTRIBUTORS.md +1 -0
  10. odoo/addons/web_view_leaflet_map/readme/DESCRIPTION.md +23 -0
  11. odoo/addons/web_view_leaflet_map/readme/DEVELOP.md +53 -0
  12. odoo/addons/web_view_leaflet_map/readme/ROADMAP.md +13 -0
  13. odoo/addons/web_view_leaflet_map/static/description/index.html +69 -62
  14. odoo/addons/web_view_leaflet_map/static/description/res_partner_large.png +0 -0
  15. odoo/addons/web_view_leaflet_map/static/description/res_partner_precise.png +0 -0
  16. odoo/addons/web_view_leaflet_map/static/src/views/leaflet_map/leaflet_map_controller.esm.js +24 -0
  17. odoo/addons/web_view_leaflet_map/static/src/views/leaflet_map/leaflet_map_controller.xml +24 -0
  18. odoo/addons/web_view_leaflet_map/static/src/views/leaflet_map/leaflet_map_renderer.esm.js +275 -0
  19. odoo/addons/web_view_leaflet_map/static/src/views/leaflet_map/leaflet_map_renderer.xml +10 -0
  20. odoo/addons/web_view_leaflet_map/static/src/views/leaflet_map/leaflet_map_view.esm.js +53 -0
  21. odoo_addon_web_view_leaflet_map-18.0.1.1.2.1.dist-info/METADATA +212 -0
  22. odoo_addon_web_view_leaflet_map-18.0.1.1.2.1.dist-info/RECORD +30 -0
  23. {odoo_addon_web_view_leaflet_map-16.0.2.0.0.3.dist-info → odoo_addon_web_view_leaflet_map-18.0.1.1.2.1.dist-info}/WHEEL +1 -1
  24. odoo_addon_web_view_leaflet_map-18.0.1.1.2.1.dist-info/top_level.txt +1 -0
  25. odoo/addons/web_view_leaflet_map/readme/CONFIGURE.rst +0 -1
  26. odoo/addons/web_view_leaflet_map/readme/CONTRIBUTORS.rst +0 -1
  27. odoo/addons/web_view_leaflet_map/readme/DESCRIPTION.rst +0 -11
  28. odoo/addons/web_view_leaflet_map/readme/DEVELOP.rst +0 -62
  29. odoo/addons/web_view_leaflet_map/readme/ROADMAP.rst +0 -8
  30. odoo/addons/web_view_leaflet_map/static/description/res_partner_map.png +0 -0
  31. odoo/addons/web_view_leaflet_map/static/src/js/view/map/map_renderer.js +0 -178
  32. odoo/addons/web_view_leaflet_map/static/src/js/view/map/map_view.js +0 -34
  33. odoo/addons/web_view_leaflet_map/static/src/js/view/view_registry.js +0 -8
  34. odoo_addon_web_view_leaflet_map-16.0.2.0.0.3.dist-info/METADATA +0 -199
  35. odoo_addon_web_view_leaflet_map-16.0.2.0.0.3.dist-info/RECORD +0 -27
  36. odoo_addon_web_view_leaflet_map-16.0.2.0.0.3.dist-info/top_level.txt +0 -1
  37. /odoo/addons/web_view_leaflet_map/static/src/{css/web_view_leaflet_map.css → views/leaflet_map/leaflet_map_renderer.css} +0 -0
@@ -1,199 +0,0 @@
1
- Metadata-Version: 2.1
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
- Home-page: https://github.com/OCA/geospatial
6
- Author: GRAP, Odoo Community Association (OCA)
7
- Author-email: support@odoo-community.org
8
- License: AGPL-3
9
- Classifier: Programming Language :: Python
10
- Classifier: Framework :: Odoo
11
- Classifier: Framework :: Odoo :: 16.0
12
- Classifier: License :: OSI Approved :: GNU Affero General Public License v3
13
- Classifier: Development Status :: 3 - Alpha
14
- Requires-Python: >=3.10
15
- Requires-Dist: odoo-addon-web-leaflet-lib<16.1dev,>=16.0dev
16
- Requires-Dist: odoo<16.1dev,>=16.0a
17
-
18
- ================================
19
- Leaflet Map View (OpenStreetMap)
20
- ================================
21
-
22
- ..
23
- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
24
- !! This file is generated by oca-gen-addon-readme !!
25
- !! changes will be overwritten. !!
26
- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
27
- !! source digest: sha256:f494ec35cbd29ae4bcc5e46a7a30bf5b2261bd449a3b0ba08a95a70d45dbea12
28
- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
29
-
30
- .. |badge1| image:: https://img.shields.io/badge/maturity-Alpha-red.png
31
- :target: https://odoo-community.org/page/development-status
32
- :alt: Alpha
33
- .. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
34
- :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
35
- :alt: License: AGPL-3
36
- .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fgeospatial-lightgray.png?logo=github
37
- :target: https://github.com/OCA/geospatial/tree/16.0/web_view_leaflet_map
38
- :alt: OCA/geospatial
39
- .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
40
- :target: https://translation.odoo-community.org/projects/geospatial-16-0/geospatial-16-0-web_view_leaflet_map
41
- :alt: Translate me on Weblate
42
- .. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
43
- :target: https://runboat.odoo-community.org/builds?repo=OCA/geospatial&target_branch=16.0
44
- :alt: Try me on Runboat
45
-
46
- |badge1| |badge2| |badge3| |badge4| |badge5|
47
-
48
- This module extends odoo views, to add a new kind of view, named ``leaflet_map``
49
- that is using the Leaflet javascript library to use maps. (https://leafletjs.com/)
50
- This library is for exemple, used in the OpenStreetMap project. (https://www.openstreetmap.org/)
51
-
52
- You can see a simple usage in the module ``web_view_leaflet_map_partner`` in the
53
- same OCA repository that displays your contact in a map, if latitude and longitude are
54
- defined. (To define latitude and longitude, refer to the Odoo module ``base_geolocalize``)
55
-
56
- .. figure:: https://raw.githubusercontent.com/OCA/geospatial/16.0/web_view_leaflet_map/static/description/view_res_partner_map_1.png
57
-
58
- .. figure:: https://raw.githubusercontent.com/OCA/geospatial/16.0/web_view_leaflet_map/static/description/view_res_partner_map_2.png
59
-
60
- .. IMPORTANT::
61
- This is an alpha version, the data model and design can change at any time without warning.
62
- Only for development or testing purpose, do not use in production.
63
- `More details on development status <https://odoo-community.org/page/development-status>`_
64
-
65
- **Table of contents**
66
-
67
- .. contents::
68
- :local:
69
-
70
- Configuration
71
- =============
72
-
73
- * See configuration of the module ``web_leaflet_lib``.
74
-
75
- Development
76
- ===========
77
-
78
- Create a new view :
79
-
80
- .. code-block:: xml
81
-
82
- <record id="view_my_model_map" model="ir.ui.view">
83
- <field name="model">my.model</field>
84
- <field name="arch" type="xml">
85
- <leaflet_map
86
- field_latitude="FIELD_LATITUDE"
87
- field_longitude="FIELD_LONGITUDE"
88
- field_title="FIELD_TITLE"
89
- field_address="FIELD_ADDRESS"
90
- field_marker_icon_image="FIELD_MARKER_ICON_IMAGE"
91
- >
92
- <field name="__last_update"/>
93
- <field name="FIELD_LATITUDE"/>
94
- <field name="FIELD_LONGITUDE"/>
95
- <field name="FIELD_TITLE"/>
96
- <field name="FIELD_ADDRESS"/>
97
- </leaflet_map>
98
- </field>
99
- </record>
100
-
101
- 1. FIELD_LATITUDE and FIELD_LONGITUDE are the name of the fields that contains GPS coordinates of the model.
102
- 2. FIELD_TITLE will be used when the popup is displayed, as a title.
103
- 3. FIELD_ADDRESS will be used when the popup is displayed to display the adress.
104
- 4. (optional) FIELD_MARKER_ICON_IMAGE, is the name of the image field to place as an icon
105
- of the marker.
106
- Note: You can set extra settings ``marker_icon_size_x``, ``marker_icon_size_y``, to define
107
- the size of the image, and ``marker_popup_anchor_x``, ``marker_popup_anchor_y`` to define
108
- the position of the popup.
109
-
110
- Map options :
111
-
112
- - ``default_zoom`` : define the default zoom value. (7 if not defined)
113
- - ``max_zoom`` : define the max zoom value. (19 if not defined)
114
- - ``zoom_snap`` : define the zoom level in each change. (1 if not defined)
115
-
116
- * Create or update an action for the model
117
-
118
- .. code-block:: xml
119
-
120
- <record id="my_module.action_my_model" model="ir.actions.act_window">
121
- <field name="view_mode">tree,form,leaflet_map</field>
122
- </record>
123
-
124
- **Library Update**
125
-
126
- For the time being, the module embed the lealflet.js library version 1.8.0 ( released on April 18, 2022.)
127
-
128
- If a new release is out:
129
-
130
- - please download it here https://leafletjs.com/download.html
131
- - update the javascript, css and images, present in the folder ``static/lib/leaflet``
132
- - test the features
133
- - make a Pull Request
134
-
135
- **Default position in the map**
136
-
137
- By default, the position of the map is defined by the user, in the function
138
- ``get_default_leaflet_position``. It returns the position of the current company, if defined.
139
- you can overload this function globally, or per model.
140
-
141
- Known issues / Roadmap
142
- ======================
143
-
144
- * For the time being, at the start of the map loading, the call of ``invalidateSize()``
145
- is required. We should investigate why and try to remove that call.
146
- see https://github.com/Leaflet/Leaflet/issues/3002#issuecomment-93836022
147
-
148
- * For the time being, the map has "Markers" and allow to display odoo items
149
- if longitude and latitude are available. We could imagine other kind of usages,
150
- with Polylines, Polygons, etc...
151
- See all the leaflet options : https://leafletjs.com/reference.html
152
-
153
- Bug Tracker
154
- ===========
155
-
156
- Bugs are tracked on `GitHub Issues <https://github.com/OCA/geospatial/issues>`_.
157
- In case of trouble, please check there if your issue has already been reported.
158
- If you spotted it first, help us to smash it by providing a detailed and welcomed
159
- `feedback <https://github.com/OCA/geospatial/issues/new?body=module:%20web_view_leaflet_map%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
160
-
161
- Do not contact contributors directly about support or help with technical issues.
162
-
163
- Credits
164
- =======
165
-
166
- Authors
167
- ~~~~~~~
168
-
169
- * GRAP
170
-
171
- Contributors
172
- ~~~~~~~~~~~~
173
-
174
- * Sylvain LE GAL (https://www.twitter.com/legalsylvain)
175
-
176
- Maintainers
177
- ~~~~~~~~~~~
178
-
179
- This module is maintained by the OCA.
180
-
181
- .. image:: https://odoo-community.org/logo.png
182
- :alt: Odoo Community Association
183
- :target: https://odoo-community.org
184
-
185
- OCA, or the Odoo Community Association, is a nonprofit organization whose
186
- mission is to support the collaborative development of Odoo features and
187
- promote its widespread use.
188
-
189
- .. |maintainer-legalsylvain| image:: https://github.com/legalsylvain.png?size=40px
190
- :target: https://github.com/legalsylvain
191
- :alt: legalsylvain
192
-
193
- Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
194
-
195
- |maintainer-legalsylvain|
196
-
197
- This module is part of the `OCA/geospatial <https://github.com/OCA/geospatial/tree/16.0/web_view_leaflet_map>`_ project on GitHub.
198
-
199
- You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
@@ -1,27 +0,0 @@
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,,