diff --git a/CHANGELOG b/CHANGELOG index fcb068ca7a..fdc7a06df6 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,4 @@ +* Add tab domain in URL * Use properties * Allow sao classes to use javascript properties * Improve layout of CSV import/export diff --git a/src/sao.js b/src/sao.js index b83365a881..eaf2f590d9 100644 --- a/src/sao.js +++ b/src/sao.js @@ -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; } diff --git a/src/screen.js b/src/screen.js index eb787ba91a..29962888f9 100644 --- a/src/screen.js +++ b/src/screen.js @@ -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);