Skip to content

Commit

Permalink
[IMP] : black, isort, prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
peluko00 committed Jan 9, 2025
1 parent f9a0381 commit 7ef84d8
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 8 deletions.
2 changes: 1 addition & 1 deletion base_geoengine/geo_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def init_postgis(cr):
"CREATE EXTENSION postgis;\n"
"CREATE EXTENSION postgis_topology;\n"
)
)
) from None


def create_geo_column(cr, tablename, columnname, geotype, srid, dim, comment=None):
Expand Down
2 changes: 1 addition & 1 deletion base_geoengine/geo_operators.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def get_rel_field(self, rel_col, rel_model):
except Exception:
raise Exception(
"Model {} has no column {}".format(rel_model._name, rel_col)
)
) from None
return "{}.{}".format(rel_model._table, rel_col)

def _get_direct_como_op_sql(
Expand Down
2 changes: 1 addition & 1 deletion base_geoengine/geo_view/geo_raster_layer_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
<field name="name">geoengine.raster.layer.tree</field>
<field name="model">geoengine.raster.layer</field>
<field name="arch" type="xml">
<tree string="Raster">
<tree>
<field name="name" select="1" />
<field name="raster_type" select="1" />
<field name="sequence" />
Expand Down
2 changes: 1 addition & 1 deletion base_geoengine/geo_view/geo_vector_layer_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
<field name="name">geoengine.vector.layer.tree</field>
<field name="model">geoengine.vector.layer</field>
<field name="arch" type="xml">
<tree string="Vector">
<tree>
<field name="name" select="1" />
<field name="geo_repr" select="1" />
<field name="classification" select="1" />
Expand Down
8 changes: 4 additions & 4 deletions base_geoengine/static/src/js/geoengine_common.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,10 @@ odoo.define("base_geoengine.BackgroundLayers", function (require) {
source_opt.projection = ol.proj.get(l.projection);
// FIXME if the projection def is not available...
if (source_opt.projection) {
var projectionExtent = source_opt.projection.getExtent();
tilegrid_opt.origin = ol.extent.getTopLeft(
projectionExtent
);
var projectionExtent =
source_opt.projection.getExtent();
tilegrid_opt.origin =
ol.extent.getTopLeft(projectionExtent);
}
}
// FIXME deprecated?
Expand Down
4 changes: 4 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# generated from manifests external_dependencies
geojson
shapely
simplejson
1 change: 1 addition & 0 deletions setup/base_geoengine/odoo/addons/base_geoengine
6 changes: 6 additions & 0 deletions setup/base_geoengine/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import setuptools

setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)

0 comments on commit 7ef84d8

Please sign in to comment.