Include context domain in URL and tab comparison
Closes #14921 (grafted from 0a37d816a7162d9aadb63ec68f63acf85c938e50) --HG-- branch : 8.0
This commit is contained in:
@@ -529,6 +529,8 @@ var Sao = {
|
||||
attributes.name = loads(params.name || '""');
|
||||
attributes.search_value = loads(params.search_value || '[]');
|
||||
attributes.domain = loads(params.domain || '[]');
|
||||
attributes.context_domain = loads(
|
||||
params.context_domain || '[]');
|
||||
attributes.context = loads(params.context || '{}');
|
||||
attributes.context_model = params.context_model;
|
||||
attributes.tab_domain = loads(params.tab_domain || '[]');
|
||||
|
||||
@@ -2168,6 +2168,10 @@
|
||||
if (!jQuery.isEmptyObject(this.domain)) {
|
||||
query_string.push(['domain', dumps(this.domain)]);
|
||||
}
|
||||
if (!jQuery.isEmptyObject(this.context_domain)) {
|
||||
query_string.push(
|
||||
['context_domain', dumps(this.context_domain)]);
|
||||
}
|
||||
var context = this.local_context; // Avoid rpc context
|
||||
if (!jQuery.isEmptyObject(context)) {
|
||||
query_string.push(['context', dumps(context)]);
|
||||
|
||||
@@ -832,6 +832,9 @@
|
||||
(this.attributes.res_id === attributes.res_id) &&
|
||||
(compare(
|
||||
this.attributes.domain || [], attributes.domain || [])) &&
|
||||
(compare(
|
||||
this.attributes.context_domain || [],
|
||||
attributes.context_domain || [])) &&
|
||||
(compare(
|
||||
this.attributes.view_ids || [],
|
||||
attributes.view_ids || [])) &&
|
||||
|
||||
Reference in New Issue
Block a user