Skip to content

Commit

Permalink
Migration for 17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
drkpkg committed Oct 16, 2024
1 parent 165e481 commit d9ccf6e
Show file tree
Hide file tree
Showing 25 changed files with 1,432 additions and 15 deletions.
36 changes: 21 additions & 15 deletions base_geoengine/i18n/it.po
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2024-01-26 15:34+0000\n"
"PO-Revision-Date: 2024-09-27 15:06+0000\n"
"Last-Translator: mymage <stefano.consolaro@mymage.it>\n"
"Language-Team: none\n"
"Language: it\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.17\n"
"X-Generator: Weblate 5.6.2\n"

#. module: base_geoengine
#. odoo-python
Expand All @@ -33,14 +33,14 @@ msgstr "Attivo all'avvio"
#: code:addons/base_geoengine/static/src/js/widgets/domain_selector_geo_field/domain_selector_field_input_with_tags/domain_selector_field_input_with_tags.xml:0
#, python-format
msgid "Add new value"
msgstr ""
msgstr "Aggiungi nuovo valore"

#. module: base_geoengine
#. odoo-javascript
#: code:addons/base_geoengine/static/src/js/widgets/domain_selector_geo_field/domain_selector_field_input_with_tags/domain_selector_field_input_with_tags.xml:0
#, python-format
msgid "Add tag"
msgstr ""
msgstr "Aggiungi etichetta"

#. module: base_geoengine
#: model:ir.model.fields,field_description:base_geoengine.field_geoengine_vector_layer__attribute_field_id
Expand Down Expand Up @@ -175,7 +175,7 @@ msgstr "Modifica dminio"
#: code:addons/base_geoengine/static/src/js/views/geoengine/layers_panel/layers_panel.esm.js:0
#, python-format
msgid "Editing Raster Layer"
msgstr ""
msgstr "Modifica livello raster"

#. module: base_geoengine
#. odoo-javascript
Expand Down Expand Up @@ -241,6 +241,8 @@ msgid ""
"Geo Value %(geom_type)s must be of the same type "
"%(geo_type)s as fields"
msgstr ""
"Il valore geografico %(geom_type)s deve essere dello stesso tipo %(geo_type)"
"s come campo"

#. module: base_geoengine
#. odoo-python
Expand Down Expand Up @@ -371,7 +373,7 @@ msgstr "Priorità livello"
#. module: base_geoengine
#: model:ir.model.fields,field_description:base_geoengine.field_geoengine_vector_layer__layer_transparent
msgid "Layer Transparent"
msgstr ""
msgstr "Livello trasparente"

#. module: base_geoengine
#: model_terms:ir.ui.view,arch_db:base_geoengine.geo_raster_view_form
Expand Down Expand Up @@ -403,7 +405,7 @@ msgstr "Livelli ("
#. module: base_geoengine
#: model:ir.model.fields.selection,name:base_geoengine.selection__ir_model_fields__geo_type__linestring
msgid "LineString"
msgstr ""
msgstr "Stringa riga"

#. module: base_geoengine
#: model:ir.model.fields,help:base_geoengine.field_geoengine_raster_layer__dimensions
Expand Down Expand Up @@ -450,17 +452,17 @@ msgstr "Vista modello"
#. module: base_geoengine
#: model:ir.model.fields.selection,name:base_geoengine.selection__ir_model_fields__geo_type__multilinestring
msgid "MultiLineString"
msgstr ""
msgstr "Stringa multi riga"

#. module: base_geoengine
#: model:ir.model.fields.selection,name:base_geoengine.selection__ir_model_fields__geo_type__multipoint
msgid "MultiPoint"
msgstr ""
msgstr "Punto multiplo"

#. module: base_geoengine
#: model:ir.model.fields.selection,name:base_geoengine.selection__ir_model_fields__geo_type__multipolygon
msgid "MultiPolygon"
msgstr ""
msgstr "Poligono multiplo"

#. module: base_geoengine
#: model:ir.model.fields,field_description:base_geoengine.field_geoengine_raster_layer_type__name
Expand All @@ -487,6 +489,8 @@ msgid ""
"No GeoEngine view defined for the model %s. Please "
"create a view or modify view mode"
msgstr ""
"Nessuna vista GeoEngine definita per il modello %s. "
"Creare una vista o modificare il modo vista"

#. module: base_geoengine
#. odoo-python
Expand Down Expand Up @@ -525,7 +529,7 @@ msgstr "Livello campo Odoo da usare"
#. module: base_geoengine
#: model:ir.model.fields,field_description:base_geoengine.field_geoengine_raster_layer__opacity
msgid "Opacity"
msgstr ""
msgstr "Opacità"

#. module: base_geoengine
#: model:ir.model.fields.selection,name:base_geoengine.selection__geoengine_raster_layer__raster_type__osm
Expand All @@ -541,17 +545,17 @@ msgstr "Parametri"
#. module: base_geoengine
#: model:ir.model.fields,field_description:base_geoengine.field_geoengine_raster_layer__params_wms
msgid "Params Wms"
msgstr ""
msgstr "Parametri WMS"

#. module: base_geoengine
#: model:ir.model.fields.selection,name:base_geoengine.selection__ir_model_fields__geo_type__point
msgid "Point"
msgstr ""
msgstr "Punto"

#. module: base_geoengine
#: model:ir.model.fields.selection,name:base_geoengine.selection__ir_model_fields__geo_type__polygon
msgid "Polygon"
msgstr ""
msgstr "Poligono"

#. module: base_geoengine
#: model:ir.model.fields,field_description:base_geoengine.field_ir_model_fields__dim
Expand Down Expand Up @@ -646,7 +650,7 @@ msgstr "Viste correlata"
#: code:addons/base_geoengine/static/src/js/widgets/domain_selector_geo_field/domain_selector_field_input_with_tags/domain_selector_field_input_with_tags.xml:0
#, python-format
msgid "Remove tag"
msgstr ""
msgstr "Rimuovi etichetta"

#. module: base_geoengine
#: model_terms:ir.ui.view,arch_db:base_geoengine.geo_vector_geoengine_view_form
Expand Down Expand Up @@ -741,6 +745,8 @@ msgid ""
"The type of the remote WMS server: mapserver, geoserver, "
"carmentaserver, or qgis"
msgstr ""
"Il tipo sel server WMS remoto: mapserver, geoserver, "
"carmentaserver, o qgis"

#. module: base_geoengine
#: model:ir.model.fields.selection,name:base_geoengine.selection__geoengine_vector_layer__classification__unique
Expand Down
125 changes: 125 additions & 0 deletions web_leaflet_lib/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
==========================
Leaflet Javascript Library
==========================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:e5af47c08dbb573c870e80a506feaccced35a36e61e63c6d39644fa84a357de1
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fgeospatial-lightgray.png?logo=github
:target: https://github.com/OCA/geospatial/tree/17.0/web_leaflet_lib
:alt: OCA/geospatial
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/geospatial-17-0/geospatial-17-0-web_leaflet_lib
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/geospatial&target_branch=17.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module extends odoo to include Leaflet Javacript library.

This module is used by ``web_view_leaflet_map``.

**Important Note**

The javascript library is opensource and distributed under BSD 2
Licence. See : https://github.com/Leaflet/Leaflet/blob/main/LICENSE You
can so use it freely.

However, display maps requires to display layers provided by tiles
servers, that requires ressources.

**For testing purpose**

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

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.

**Regular / High Usage**

- you can contact one of the following companies :
https://switch2osm.org/providers/
- You can also install yourself your own tiles servers. See
documentation : https://switch2osm.org/serving-tiles/

**Table of contents**

.. contents::
:local:

Configuration
=============

- Go to Settings > Technical > Parameters > System Parameters
- Create or edit the parameter with the key ``leaflet.tile_url``
- As a value, set the url of the tiles server you chose. (See
description)

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/geospatial/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/geospatial/issues/new?body=module:%20web_leaflet_lib%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
-------

* GRAP

Contributors
------------

- Sylvain LE GAL (https://www.twitter.com/legalsylvain)

Other credits
-------------

The module embed the Leaflet.js library.

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

.. |maintainer-legalsylvain| image:: https://github.com/legalsylvain.png?size=40px
:target: https://github.com/legalsylvain
:alt: legalsylvain

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-legalsylvain|

This module is part of the `OCA/geospatial <https://github.com/OCA/geospatial/tree/17.0/web_leaflet_lib>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
2 changes: 2 additions & 0 deletions web_leaflet_lib/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import models
from .hooks import pre_init_hook
25 changes: 25 additions & 0 deletions web_leaflet_lib/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Copyright (C) 2024 - Today: GRAP (http://www.grap.coop)
# @author: Sylvain LE GAL (https://twitter.com/legalsylvain)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

{
"name": "Leaflet Javascript Library",
"summary": "Bring leaflet.js librairy in odoo.",
"version": "17.0.1.0.0",
"author": "GRAP, Odoo Community Association (OCA)",
"maintainers": ["legalsylvain"],
"website": "https://github.com/OCA/geospatial",
"license": "AGPL-3",
"category": "Extra Tools",
"depends": ["base"],
"data": ["data/ir_config_parameter.xml"],
"demo": ["demo/ir_config_parameter.xml"],
"assets": {
"web.assets_backend": [
"/web_leaflet_lib/static/lib/leaflet/leaflet.css",
"/web_leaflet_lib/static/lib/leaflet/leaflet.js",
],
},
"installable": True,
"pre_init_hook": "pre_init_hook",
}
20 changes: 20 additions & 0 deletions web_leaflet_lib/data/ir_config_parameter.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!--
Copyright (C) 2022 - Today: GRAP (http://www.grap.coop)
@author: Sylvain LE GAL (https://twitter.com/legalsylvain)
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
-->
<odoo noupdate="1">
<record
id="config_parameter_leaflet_copyright"
model="ir.config_parameter"
forcecreate="True"
>
<field name="key">leaflet.copyright</field>
<field
name="value"
><![CDATA[
&copy; <a href='http://www.openstreetmap.org/copyright'>OpenStreetMap</a>]]>
</field>
</record>
</odoo>
16 changes: 16 additions & 0 deletions web_leaflet_lib/demo/ir_config_parameter.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!--
Copyright (C) 2022 - Today: GRAP (http://www.grap.coop)
@author: Sylvain LE GAL (https://twitter.com/legalsylvain)
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
-->
<odoo noupdate="1">
<record
id="config_parameter_leaflet_tile_url"
model="ir.config_parameter"
forcecreate="True"
>
<field name="key">leaflet.tile_url</field>
<field name="value">https://tile.openstreetmap.org/{z}/{x}/{y}.png</field>
</record>
</odoo>
14 changes: 14 additions & 0 deletions web_leaflet_lib/hooks.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
def pre_init_hook(cr):
# move configuration from web_view_leaflet_map
# into web_leaflet_lib, if exists.
cr.execute(
"""
UPDATE ir_model_data
SET module='web_leaflet_lib'
WHERE module = 'web_view_leaflet_map'
AND name in (
'config_parameter_leaflet_copyright',
'config_parameter_leaflet_tile_url'
)
"""
)
21 changes: 21 additions & 0 deletions web_leaflet_lib/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * web_leaflet_lib
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-10-12 20:11+0000\n"
"PO-Revision-Date: 2024-10-12 20:11+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: web_leaflet_lib
#: model:ir.model,name:web_leaflet_lib.model_ir_http
msgid "HTTP Routing"
msgstr "Routage HTTP"
1 change: 1 addition & 0 deletions web_leaflet_lib/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import ir_http
Loading

0 comments on commit d9ccf6e

Please sign in to comment.