From 258d72812e8a6b02d7bb4968f52c33d036b42ef6 Mon Sep 17 00:00:00 2001 From: "Rajesh Prajapati (OpenERP)" Date: Fri, 21 Sep 2012 12:10:59 +0530 Subject: [PATCH] [IMP] Event : Traceback removed of confirm event button while moodle installed bzr revid: rpr@tinyerp.com-20120921064059-g16iuqs0jfy79f5q --- addons/event_moodle/event_moodle.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/event_moodle/event_moodle.py b/addons/event_moodle/event_moodle.py index 19e763e91b0..f36b1cd2d62 100644 --- a/addons/event_moodle/event_moodle.py +++ b/addons/event_moodle/event_moodle.py @@ -101,6 +101,8 @@ class event_moodle(osv.osv): """ #connect to moodle url = self.browse(cr, uid, id, context=context).url + if not url: + raise osv.except_osv(('Error!'),("First configure your moodle connection.")) sock = xmlrpclib.ServerProxy(url) return sock.core_course_create_courses(courses)