[FIX] web: untranslated fields in widget domain

The user context was not propagated so the list of fields was untranslated.
This commit is contained in:
Martin Trigaux
2017-09-26 10:58:28 +02:00
parent e64762e535
commit 25a0b0f4db
@@ -200,7 +200,8 @@ var ModelFieldSelector = Widget.extend({
args: [
false,
["store", "searchable", "type", "string", "relation", "selection", "related"]
]
],
context: this.getSession().user_context,
})
.then((function (fields) {
modelFieldsCache.cache[model] = sortFields(fields);