summaryrefslogtreecommitdiff
path: root/addons/website/static/src/js/website.editor.js
diff options
context:
space:
mode:
authorFabien Meghazi <fme@openerp.com>2013-09-11 18:18:54 +0200
committerFabien Meghazi <fme@openerp.com>2013-09-11 18:18:54 +0200
commit3f4d64b1f0507b8a13e712d48e54213de77a9002 (patch)
tree0a1aadd9065fabfe767c2a01fe95efbb1d636b8b /addons/website/static/src/js/website.editor.js
parent1bcae6b62fed65ea5b2797533e3a8bac41760dcb (diff)
[IMP] Use context in website's js rpc calls
bzr revid: fme@openerp.com-20130911161854-zhm53dugiisychfb
Diffstat (limited to 'addons/website/static/src/js/website.editor.js')
-rw-r--r--addons/website/static/src/js/website.editor.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/addons/website/static/src/js/website.editor.js b/addons/website/static/src/js/website.editor.js
index 4d6ec2520fd..58d25143b5c 100644
--- a/addons/website/static/src/js/website.editor.js
+++ b/addons/website/static/src/js/website.editor.js
@@ -264,7 +264,7 @@
return openerp.jsonRpc('/web/dataset/call', 'call', {
model: 'ir.ui.view',
method: 'save',
- args: [data.oeModel, data.oeId, data.oeField, html, xpath]
+ args: [data.oeModel, data.oeId, data.oeField, html, xpath, website.get_context()]
});
},
cancel: function () {
@@ -549,7 +549,9 @@
model: 'website',
method: 'list_pages',
args: [],
- kwargs: {}
+ kwargs: {
+ context: website.get_context()
+ },
});
},
fill_pages: function (results) {
@@ -653,6 +655,7 @@
fields: ['name'],
domain: [['res_model', '=', 'ir.ui.view']],
order: 'name',
+ context: website.get_context(),
}
});
},