diff options
| author | Xavier Morel <xmo@openerp.com> | 2011-02-09 15:35:42 +0100 |
|---|---|---|
| committer | Xavier Morel <xmo@openerp.com> | 2011-02-09 15:35:42 +0100 |
| commit | d02beb5f697b83c97681fb4c4fd08a3e96134db7 (patch) | |
| tree | 0617202b24f8df034102953da0d9885bd9a077bb | |
| parent | 14ebc46e3ac80413b2883fe5ebe12b6e51e0b921 (diff) | |
[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
| -rw-r--r-- | addons/web_livechat/__openerp__.py | 2 | ||||
| -rw-r--r-- | 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] + """ <link rel="stylesheet" type="text/css" href="/web_livechat/static/css/lc.css"/> <% - 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']: <script type="text/javascript"> @@ -69,7 +69,7 @@ class HeaderTemplateEditor(openobject.templating.TemplateEditor): output = output[:corner] + """ <p id="livechat_status" class="logout"> - ${ rpc.session.execute('object', 'execute', 'publisher_warranty.contract', 'get_default_livechat_text') | n} + ${ rpc.RPCProxy('publisher_warranty.contract').get_default_livechat_text() | n} </p> % if cp.session['livechat']: |
