Do not dumps/loads context domain in URL

The context domain must be evaluated only by the screen when doing a domain
search.

Closes #14921
(grafted from dbad6143d6d085b448b71e446b546e488d45cf55)

--HG--
branch : 8.0
This commit is contained in:
Cédric Krier
2026-07-08 15:03:35 +02:00
parent 1a1840670d
commit ebd18b5716
4 changed files with 4 additions and 8 deletions
+1 -2
View File
@@ -529,8 +529,7 @@ 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_domain = params.context_domain;
attributes.context = loads(params.context || '{}');
attributes.context_model = params.context_model;
attributes.tab_domain = loads(params.tab_domain || '[]');
+1 -1
View File
@@ -2170,7 +2170,7 @@
}
if (!jQuery.isEmptyObject(this.context_domain)) {
query_string.push(
['context_domain', dumps(this.context_domain)]);
['context_domain', this.context_domain]);
}
var context = this.local_context; // Avoid rpc context
if (!jQuery.isEmptyObject(context)) {
+1 -2
View File
@@ -1017,8 +1017,7 @@ class Main(Gtk.Application):
attributes['search_value'] = loads(
params.get('search_value', '[]'))
attributes['domain'] = loads(params.get('domain', '[]'))
attributes['context_domain'] = loads(
params.get('context_domain', '[]'))
attributes['context_domain'] = params.get('context_domain')
attributes['context'] = loads(params.get('context', '{}'))
attributes['context_model'] = params.get('context_model')
attributes['tab_domain'] = loads(
@@ -1363,9 +1363,7 @@ class Screen:
query_string.append(('domain', json.dumps(
self.domain, cls=JSONEncoder, separators=(',', ':'))))
if self.context_domain:
query_string.append(('context_domain', json.dumps(
self.context_domain, cls=JSONEncoder,
separators=(',', ':'))))
query_string.append(('context_domain', self.context_domain))
context = self.local_context # Avoid rpc context
if context:
query_string.append(('context', json.dumps(