[ADD] Added website_id in client side context.

This allow us to comply to the 'ids' argument of website's model method (if needed)

bzr revid: fme@openerp.com-20131025074343-6nqgte7lzj7uhopj
This commit is contained in:
Fabien Meghazi
2013-10-25 09:43:43 +02:00
parent a597cc59ef
commit ec09c0fa2c
2 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -12,7 +12,8 @@
website.get_context = function (dict) {
var html = document.documentElement;
return _.extend({
lang: html.getAttribute('lang').replace('-', '_')
lang: html.getAttribute('lang').replace('-', '_'),
website_id: html.getAttribute('data-website-id')|0
}, dict);
};