From f6aecb4af63f9b5973e93941072962ac8377229c Mon Sep 17 00:00:00 2001 From: Henrik Norlin Date: Tue, 29 Aug 2023 21:23:16 +0200 Subject: [PATCH] [FIX] web_timeline: Add record - FormViewDialog - resId: null -> false (cannot be null) --- web_timeline/__manifest__.py | 2 +- web_timeline/static/src/js/timeline_controller.esm.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web_timeline/__manifest__.py b/web_timeline/__manifest__.py index 0ee7cbc87..b9b0fad7b 100644 --- a/web_timeline/__manifest__.py +++ b/web_timeline/__manifest__.py @@ -4,7 +4,7 @@ { "name": "Web timeline", "summary": "Interactive visualization chart to show events in time", - "version": "16.0.1.0.1", + "version": "16.0.1.0.2", "development_status": "Production/Stable", "author": "ACSONE SA/NV, " "Tecnativa, " diff --git a/web_timeline/static/src/js/timeline_controller.esm.js b/web_timeline/static/src/js/timeline_controller.esm.js index 630609a1f..3cc8b19a6 100644 --- a/web_timeline/static/src/js/timeline_controller.esm.js +++ b/web_timeline/static/src/js/timeline_controller.esm.js @@ -290,7 +290,7 @@ export default AbstractController.extend({ this.Dialog = Component.env.services.dialog.add( FormViewDialog, { - resId: null, + resId: false, context: _.extend(default_context, this.context), onRecordSaved: (record) => this.create_completed([record.res_id]), resModel: this.model.modelName,