changeset ea8b09617961 in sao:default
details: https://hg.tryton.org/sao?cmd=changeset;node=ea8b09617961
description:
        Add tab domain in url

        issue7841
        review46691002
diffstat:

 CHANGELOG     |  1 +
 src/sao.js    |  1 +
 src/screen.js |  4 ++++
 3 files changed, 6 insertions(+), 0 deletions(-)

diffs (33 lines):

diff -r d05d609fc974 -r ea8b09617961 CHANGELOG
--- a/CHANGELOG Tue Feb 26 16:03:56 2019 +0100
+++ b/CHANGELOG Tue Feb 26 16:05:25 2019 +0100
@@ -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 -r d05d609fc974 -r ea8b09617961 src/sao.js
--- a/src/sao.js        Tue Feb 26 16:03:56 2019 +0100
+++ b/src/sao.js        Tue Feb 26 16:05:25 2019 +0100
@@ -422,6 +422,7 @@
                 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 -r d05d609fc974 -r ea8b09617961 src/screen.js
--- a/src/screen.js     Tue Feb 26 16:03:56 2019 +0100
+++ b/src/screen.js     Tue Feb 26 16:05:25 2019 +0100
@@ -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);

Reply via email to