From 5bd8e02dc854d6cb367817697c5446132f957302 Mon Sep 17 00:00:00 2001 From: Aaron Bohy Date: Fri, 21 Aug 2015 10:52:30 +0200 Subject: [PATCH] [IMP] web: action_manager: update client action's title when the widget's title changes, as it is displayed in the breadcrumbs --- addons/web/static/src/js/action_manager.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/addons/web/static/src/js/action_manager.js b/addons/web/static/src/js/action_manager.js index 075b21a966e..b2dfba2a395 100644 --- a/addons/web/static/src/js/action_manager.js +++ b/addons/web/static/src/js/action_manager.js @@ -107,6 +107,9 @@ var WidgetAction = Action.extend({ if (!this.widget.get('title')) { this.widget.set('title', this.title); } + this.widget.on('change:title', this, function(widget) { + this.title = widget.get('title'); + }); }, /** * Wraps the action's widget in a container and appends it to el