diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 03c1acbbcf..6b54f94dad 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -42,7 +42,7 @@ jobs:
makepot: "true"
services:
postgres:
- image: postgres:12.0
+ image: postgis/postgis:13-3.4
env:
POSTGRES_USER: odoo
POSTGRES_PASSWORD: odoo
diff --git a/fieldservice_geoengine/__manifest__.py b/fieldservice_geoengine/__manifest__.py
index 952d101751..40a8c6e179 100644
--- a/fieldservice_geoengine/__manifest__.py
+++ b/fieldservice_geoengine/__manifest__.py
@@ -6,7 +6,7 @@
"name": "Field Service Geoengine",
"summary": "Display Field Service locations on a map with Open Street Map",
"license": "AGPL-3",
- "version": "16.0.1.0.0",
+ "version": "17.0.1.0.0",
"category": "Field Service",
"author": "Open Source Integrators, Odoo Community Association (OCA), Pytech SRL",
"website": "https://github.com/OCA/field-service",
diff --git a/fieldservice_geoengine/static/src/js/views/geoengine/geoengine_renderer/geoengine_renderer.esm.js b/fieldservice_geoengine/static/src/js/views/geoengine/geoengine_renderer/geoengine_renderer.esm.js
index 6e6d4b3d47..808d799f8f 100644
--- a/fieldservice_geoengine/static/src/js/views/geoengine/geoengine_renderer/geoengine_renderer.esm.js
+++ b/fieldservice_geoengine/static/src/js/views/geoengine/geoengine_renderer/geoengine_renderer.esm.js
@@ -15,7 +15,7 @@ const DEFAULT_END_COLOR = "#000000";
const LEGEND_MAX_ITEMS = 10;
const DEFAULT_NUM_CLASSES = 5;
-patch(GeoengineRenderer.prototype, "geoengine_renderer_view_patch", {
+patch(GeoengineRenderer.prototype, {
styleVectorLayerColored(cfg, data) {
var indicator = cfg.attribute_field_id[1];
var values = this.extractLayerValues(cfg, data);
diff --git a/fieldservice_geoengine/tests/test_fsm_location.py b/fieldservice_geoengine/tests/test_fsm_location.py
index dfa09d4e92..1c48b0659e 100644
--- a/fieldservice_geoengine/tests/test_fsm_location.py
+++ b/fieldservice_geoengine/tests/test_fsm_location.py
@@ -2,6 +2,8 @@
# Copyright (C) 2023 - TODAY Pytech SRL
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
+import requests
+
from odoo import fields
from odoo.tests.common import TransactionCase
@@ -9,6 +11,7 @@
class TestFsmLocation(TransactionCase):
@classmethod
def setUpClass(cls):
+ cls._super_send = requests.Session.send
super().setUpClass()
cls.FSMLocation = cls.env["fsm.location"]
cls.location_partner_1 = cls.env.ref("fieldservice.location_partner_1")
@@ -31,6 +34,11 @@ def setUpClass(cls):
}
)
+ @classmethod
+ def _request_handler(cls, s, r, /, **kw):
+ """Don't block external requests."""
+ return cls._super_send(s, r, **kw)
+
def test_fsm_location_creation(self):
test_partner = self.env["res.partner"].create(
{
diff --git a/fieldservice_geoengine/views/fsm_order.xml b/fieldservice_geoengine/views/fsm_order.xml
index 8275897114..b3c890a806 100644
--- a/fieldservice_geoengine/views/fsm_order.xml
+++ b/fieldservice_geoengine/views/fsm_order.xml
@@ -79,6 +79,7 @@
colored
+ True
Orders
fsm.order
kanban,tree,geoengine,form,calendar
- {'default_team_id': active_id}
- [('team_id', '=', active_id)]
+ {'default_team_id': id}
+ [('team_id', '=', id)]