[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
This commit is contained in:
committed by
Antony Lesuisse
parent
033c0a03e2
commit
70719843bf
@@ -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_')) {
|
||||
|
||||
Reference in New Issue
Block a user