mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[FIX][web_advanced_search_x2x] Load fields in user's language
Fixes #702.
This commit is contained in:
@@ -310,10 +310,13 @@ var fieldsCache = {
|
||||
}).bind(this));
|
||||
},
|
||||
updateCache: function (model) {
|
||||
this.cacheDefs[model] = new Model(model).call("fields_get", [
|
||||
false,
|
||||
["store", "searchable", "type", "string", "relation", "selection", "related"],
|
||||
]).then((function (fields) {
|
||||
var _model = new Model(model);
|
||||
this.cacheDefs[model] = _model.call(
|
||||
"fields_get",
|
||||
[false, ["store", "searchable", "type", "string", "relation",
|
||||
"selection", "related"]],
|
||||
{context: _model.context()}
|
||||
).then((function (fields) {
|
||||
this.cache[model] = sortFields(fields);
|
||||
}).bind(this));
|
||||
return this.cacheDefs[model];
|
||||
|
||||
Reference in New Issue
Block a user