Add context_model to URL
issue6750 review44341002
This commit is contained in:
1 parent
9187e9cfc6
commit
75ca8736d9
2 files changed
+5
No files matched your search
@@ -1276,6 +1276,7 @@ class Main(object):
|
||||
object_hook=object_hook)
|
||||
context = json.loads(params.get('context', '{}'),
|
||||
object_hook=object_hook)
|
||||
context_model = params.get('context_model')
|
||||
except ValueError:
|
||||
return
|
||||
if path:
|
||||
@@ -1290,6 +1291,7 @@ class Main(object):
|
||||
res_id=res_id,
|
||||
domain=domain,
|
||||
context=context,
|
||||
context_model=context_model,
|
||||
mode=mode,
|
||||
name=name,
|
||||
limit=limit,
|
||||
|
||||
@@ -1152,6 +1152,9 @@ class Screen(SignalEvent):
|
||||
if self.context:
|
||||
query_string.append(('context', json.dumps(
|
||||
self.context, cls=JSONEncoder, separators=(',', ':'))))
|
||||
if self.context_screen:
|
||||
query_string.append(
|
||||
('context_model', self.context_screen.model_name))
|
||||
if name:
|
||||
query_string.append(
|
||||
('name', json.dumps(name, separators=(',', ':'))))
|
||||
|
||||
Reference in new issue
Block a user