summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/action_manager.js
diff options
context:
space:
mode:
authorAaron Bohy <aab@odoo.com>2015-08-21 10:52:30 +0200
committerAaron Bohy <aab@odoo.com>2015-09-01 20:05:05 +0200
commit5bd8e02dc854d6cb367817697c5446132f957302 (patch)
treeff46f381eae076b425e337eda2bf5d12d7712055 /addons/web/static/src/js/action_manager.js
parent275efedaadfb6d20106d49ba5ec5eccbcb8b508e (diff)
[IMP] web: action_manager: update client action's title
when the widget's title changes, as it is displayed in the breadcrumbs
Diffstat (limited to 'addons/web/static/src/js/action_manager.js')
-rw-r--r--addons/web/static/src/js/action_manager.js3
1 files changed, 3 insertions, 0 deletions
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