[IMP] Event : Traceback removed of confirm event button while moodle installed

bzr revid: rpr@tinyerp.com-20120921064059-g16iuqs0jfy79f5q
This commit is contained in:
Rajesh Prajapati (OpenERP)
2012-09-21 12:10:59 +05:30
parent fa9b5c7dc3
commit 258d72812e
+2
View File
@@ -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)