From d02beb5f697b83c97681fb4c4fd08a3e96134db7 Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Wed, 9 Feb 2011 15:35:42 +0100 Subject: [PATCH] [IMP] web_livechat: use rpc.RPCProxy instead of rpc.session.execute (as direct session access will probably get restricted soon on the web client) bzr revid: xmo@openerp.com-20110209143542-m5vp1smqev2xap48 --- addons/web_livechat/__openerp__.py | 2 +- addons/web_livechat/web/editors.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/web_livechat/__openerp__.py b/addons/web_livechat/__openerp__.py index d744a16dd65..8ad23602610 100644 --- a/addons/web_livechat/__openerp__.py +++ b/addons/web_livechat/__openerp__.py @@ -20,7 +20,7 @@ ############################################################################## { 'name': 'Live Chat Support', - 'version': '1.0', + 'version': '1.1', 'category': 'Generic Modules/Others', 'description': "Enable live chat support for whom have a maintenance contract", 'author': 'OpenERP s.a.', diff --git a/addons/web_livechat/web/editors.py b/addons/web_livechat/web/editors.py index 1c50ca0ec48..bb3dd3da354 100644 --- a/addons/web_livechat/web/editors.py +++ b/addons/web_livechat/web/editors.py @@ -32,7 +32,7 @@ class BaseTemplateEditor(openobject.templating.TemplateEditor): output = output[:end_head] + """ <% - cp.session['livechat'] = rpc.session.execute('object', 'execute', 'publisher_warranty.contract', 'is_livechat_enable') + cp.session['livechat'] = rpc.RPCProxy('publisher_warranty.contract').is_livechat_enable() %> % if cp.session['livechat']: