From 61338991d3aef23bbb849e57f870220c0ea7609a Mon Sep 17 00:00:00 2001 From: Sergio Sancho Date: Mon, 20 May 2024 12:04:51 +0200 Subject: [PATCH] feat(records panel): completes the records panel migration to odoo 17 --- .../geoengine_renderer/geoengine_renderer.esm.js | 2 +- .../geoengine/geoengine_renderer/geoengine_renderer.xml | 4 ++-- .../js/views/geoengine/records_panel/records_panel.esm.js | 8 +++++++- .../search_bar_records/search_bar_records.esm.js | 3 +++ .../search_bar_records/search_bar_records.xml | 8 ++++---- 5 files changed, 17 insertions(+), 8 deletions(-) diff --git a/base_geoengine/static/src/js/views/geoengine/geoengine_renderer/geoengine_renderer.esm.js b/base_geoengine/static/src/js/views/geoengine/geoengine_renderer/geoengine_renderer.esm.js index 69e8793e43..0b9f4e7993 100644 --- a/base_geoengine/static/src/js/views/geoengine/geoengine_renderer/geoengine_renderer.esm.js +++ b/base_geoengine/static/src/js/views/geoengine/geoengine_renderer/geoengine_renderer.esm.js @@ -570,7 +570,7 @@ export class GeoengineRenderer extends Component { */ onDisplayPopupRecord(record) { const popup = this.getPopup(); - const feature = this.vectorSource.getFeatureById(record.id); + const feature = this.vectorSource.getFeatureById(record.resId); if (feature) { this.mountGeoengineRecord({ popup, diff --git a/base_geoengine/static/src/js/views/geoengine/geoengine_renderer/geoengine_renderer.xml b/base_geoengine/static/src/js/views/geoengine/geoengine_renderer/geoengine_renderer.xml index cba84a6923..f071dcf8eb 100644 --- a/base_geoengine/static/src/js/views/geoengine/geoengine_renderer/geoengine_renderer.xml +++ b/base_geoengine/static/src/js/views/geoengine/geoengine_renderer/geoengine_renderer.xml @@ -6,12 +6,12 @@
- + />