Add tab domain in url

issue7841
review46691002
This commit is contained in:
Cédric Krier
2019-02-26 16:05:25 +01:00
parent fd98564d78
commit 5a5daf973f
3 changed files with 6 additions and 0 deletions
+1
View File
@@ -1,3 +1,4 @@
* Add tab domain in URL
* Use properties
* Allow sao classes to use javascript properties
* Improve layout of CSV import/export
+1
View File
@@ -422,6 +422,7 @@ var Sao = {};
attributes.domain = loads(params.domain || '[]');
attributes.context = loads(params.context || '{}');
attributes.context_model = params.context_model;
attributes.tab_domain = loads(params.tab_domain || '[]');
} catch (e) {
return;
}
+4
View File
@@ -1833,6 +1833,10 @@
if (name) {
query_string.push(['name', dumps(name)]);
}
if (this.attributes.tab_domain) {
query_string.push([
'tab_domain', dumps(this.attributes.tab_domain)]);
}
var path = ['model', this.model_name];
var view_ids = this.views.map(
function(v) {return v.view_id;}).concat(this.view_ids);