Skip to content

Commit

Permalink
Fix of two warnings (#10)
Browse files Browse the repository at this point in the history
* fix(params wms): changes params_wms string to avoid warning of duplicated label

* fix(xml declaration): removes xml declaration in description html as considered deprecated
  • Loading branch information
sersanchus authored Sep 20, 2024
1 parent 86fb264 commit 7311d21
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion base_geoengine/i18n/base_geoengine.pot
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ msgstr ""

#. module: base_geoengine
#: model:ir.model.fields,field_description:base_geoengine.field_geoengine_raster_layer__params
#: model:ir.model.fields,field_description:base_geoengine.field_geoengine_raster_layer__params_wms
#: model_terms:ir.ui.view,arch_db:base_geoengine.geo_raster_view_form
msgid "Params"
msgstr ""

Expand Down
2 changes: 1 addition & 1 deletion base_geoengine/i18n/es.po
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ msgstr "Polígono"

#. module: base_geoengine
#: model:ir.model.fields,field_description:base_geoengine.field_geoengine_raster_layer__params
#: model:ir.model.fields,field_description:base_geoengine.field_geoengine_raster_layer__params_wms
#: model_terms:ir.ui.view,arch_db:base_geoengine.geo_raster_view_form
msgid "Params"
msgstr "Parámetros"

Expand Down
2 changes: 1 addition & 1 deletion base_geoengine/i18n/fr_BE.po
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ msgstr ""

#. module: base_geoengine
#: model:ir.model.fields,field_description:base_geoengine.field_geoengine_raster_layer__params
#: model:ir.model.fields,field_description:base_geoengine.field_geoengine_raster_layer__params_wms
#: model_terms:ir.ui.view,arch_db:base_geoengine.geo_raster_view_form
msgid "Params"
msgstr "Paramètres"

Expand Down
2 changes: 1 addition & 1 deletion base_geoengine/i18n/it.po
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ msgstr ""

#. module: base_geoengine
#: model:ir.model.fields,field_description:base_geoengine.field_geoengine_raster_layer__params
#: model:ir.model.fields,field_description:base_geoengine.field_geoengine_raster_layer__params_wms
#: model_terms:ir.ui.view,arch_db:base_geoengine.geo_raster_view_form
msgid "Params"
msgstr "Parametri"

Expand Down
2 changes: 1 addition & 1 deletion base_geoengine/i18n/sv.po
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ msgstr ""

#. module: base_geoengine
#: model:ir.model.fields,field_description:base_geoengine.field_geoengine_raster_layer__params
#: model:ir.model.fields,field_description:base_geoengine.field_geoengine_raster_layer__params_wms
#: model_terms:ir.ui.view,arch_db:base_geoengine.geo_raster_view_form
msgid "Params"
msgstr ""

Expand Down
2 changes: 1 addition & 1 deletion base_geoengine/models/geo_raster_layer.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class GeoRasterLayer(models.Model):
params = fields.Char(help="Dictiorary of values for dimensions as JSON")

# wms options
params_wms = fields.Char("Params", help="Need to provide at least a LAYERS param")
params_wms = fields.Char(help="Need to provide at least a LAYERS param")
server_type = fields.Char(
help="The type of the remote WMS server: mapserver, \
geoserver, carmentaserver, or qgis",
Expand Down
1 change: 0 additions & 1 deletion base_geoengine/static/description/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
Expand Down
2 changes: 1 addition & 1 deletion base_geoengine/views/geo_raster_layer_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
</group>
<field name="is_wms" invisible="1" />
<group string="WMS options" invisible="not is_wms" colspan="4">
<field name="params_wms" required="is_wms" />
<field name="params_wms" required="is_wms" string="Params" />
<field name="server_type" required="is_wms" />
</group>
<field name="has_type" invisible="1" />
Expand Down

0 comments on commit 7311d21

Please sign in to comment.