diff --git a/web_timeline/static/src/js/timeline_controller.esm.js b/web_timeline/static/src/js/timeline_controller.esm.js index fac8f11ed8b..98e05cf56be 100644 --- a/web_timeline/static/src/js/timeline_controller.esm.js +++ b/web_timeline/static/src/js/timeline_controller.esm.js @@ -310,7 +310,7 @@ export default AbstractController.extend({ { resId: false, context: _.extend(default_context, this.context), - onRecordSaved: (record) => this.create_completed([record.res_id]), + onRecordSaved: (record) => this.create_completed([record.resId]), resModel: this.model.modelName, }, {onClose: () => event.data.callback()}