[FIX] web: SelectCreateDialog: don't erase domain

When a SelectCreateDialog was opened with a given domain, this
domain was completely lost if the user wrote a new domain (or
groupby) in the searchview, whereas they should be concatenated.
This commit is contained in:
Aaron Bohy
2017-05-19 15:51:57 +02:00
parent 702835682e
commit da152cfdbf
2 changed files with 40 additions and 4 deletions
@@ -375,11 +375,9 @@ var SelectCreateDialog = ViewDialog.extend({
});
},
_process_search_data: function (domains, contexts, groupbys) {
var user_context = this.getSession().user_context;
contexts = [user_context].concat(contexts);
var results = pyeval.eval_domains_and_contexts({
domains: domains || [],
contexts: contexts || [],
domains: [this.domain].concat(domains),
contexts: [this.context].concat(contexts),
group_by_seq: groupbys || []
});
return {