[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:
@@ -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);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user