summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js
diff options
context:
space:
mode:
authorLouis Baudoux <lba@odoo.com>2019-02-04 10:13:47 +0000
committerLouis Baudoux <lba@odoo.com>2019-02-12 11:00:18 +0000
commitda4cb0acb557aad76a780db58e4cc4f56807fcc1 (patch)
tree065143852e98c7ccd20d6fd5b4fe3479b1443371 /addons/web/static/src/js
parent5fa651cb013ac67d7ba592498c4cf2770dec2483 (diff)
[FIX] web: pass buttons_template as parameter of KanbanController
Before buttons_template couldn't be passed as parameter, which prevented from changing the button template used when rendering the button
Diffstat (limited to 'addons/web/static/src/js')
-rw-r--r--addons/web/static/src/js/views/kanban/kanban_controller.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/web/static/src/js/views/kanban/kanban_controller.js b/addons/web/static/src/js/views/kanban/kanban_controller.js
index 8c6525981f2..3b41b26e015 100644
--- a/addons/web/static/src/js/views/kanban/kanban_controller.js
+++ b/addons/web/static/src/js/views/kanban/kanban_controller.js
@@ -18,6 +18,7 @@ var _t = core._t;
var qweb = core.qweb;
var KanbanController = BasicController.extend({
+ buttons_template: 'KanbanView.buttons',
custom_events: _.extend({}, BasicController.prototype.custom_events, {
quick_create_add_column: '_onAddColumn',
quick_create_record: '_onQuickCreateRecord',
@@ -78,7 +79,7 @@ var KanbanController = BasicController.extend({
*/
renderButtons: function ($node) {
if (this.hasButtons && this.is_action_enabled('create')) {
- this.$buttons = $(qweb.render('KanbanView.buttons', {
+ this.$buttons = $(qweb.render(this.buttons_template, {
btnClass: 'btn-primary',
widget: this,
}));