From 6d3288670660ede1aef5ff0883e25824332c9663 Mon Sep 17 00:00:00 2001 From: Husen Daudi Date: Mon, 9 Jun 2008 11:59:42 +0000 Subject: [PATCH] Add ir.actions.url action [openobject-client @ hda@tinyerp.com-f07ed000015a27de94b2d2f4edcfd884239bb7b9] --- bin/modules/action/main.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/modules/action/main.py b/bin/modules/action/main.py index dc9bddb8..eb670468 100644 --- a/bin/modules/action/main.py +++ b/bin/modules/action/main.py @@ -142,11 +142,14 @@ class main(service.Service): del datas['window'] self.exec_report(action['report_name'], datas) + elif action['type']=='ir.actions.url': + tools.launch_browser(action.get('url','')) + def exec_keyword(self, keyword, data={}, adds={}, context={}, warning=True): actions = None if 'id' in data: try: - id = data.get('id', False) + id = data.get('id', False) actions = rpc.session.rpc_exec_auth('/object', 'execute', 'ir.values', 'get', 'action', keyword, [(data['model'], id)], False, rpc.session.context) -- 2.11.4.GIT