From 70719843bfc8840f81088bfd82e1073cbd9d26dc Mon Sep 17 00:00:00 2001 From: qsm-odoo Date: Wed, 5 Aug 2015 14:14:27 +0200 Subject: [PATCH] [IMP] web_kanban: provide session user context * Kanban templates now have access to the object "user_context" which contains the current uid, lang and timezone --- addons/web_kanban/static/src/js/kanban_record.js | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/web_kanban/static/src/js/kanban_record.js b/addons/web_kanban/static/src/js/kanban_record.js index 9357978d20c..2e74ff310d5 100644 --- a/addons/web_kanban/static/src/js/kanban_record.js +++ b/addons/web_kanban/static/src/js/kanban_record.js @@ -56,6 +56,7 @@ var KanbanRecord = Widget.extend({ record: this.record, widget: this, read_only_mode: this.read_only_mode, + user_context: session.user_context, }; for (var p in this) { if (_.str.startsWith(p, 'kanban_')) {