diff --git a/addons/smtpclient/smtpclient.py b/addons/smtpclient/smtpclient.py index 3d3a4d14f73..87aadcc7749 100644 --- a/addons/smtpclient/smtpclient.py +++ b/addons/smtpclient/smtpclient.py @@ -52,12 +52,14 @@ from osv import fields from osv import osv from tools.translate import _ -error_msg = {'not_active' : "Please activate Email Server, without activating you can not send Email(s).", - 'server_stop' : 'Please start Email Server, without starting you can not send Email(s).', - 'server_not_confirm' : 'Please Verify Email Server, without verifying you can not send Email(s).'} +error_msg = { + 'not_active' : "Please activate Email Server, without activating you can not send Email(s).", + 'server_stop' : 'Please start Email Server, without starting you can not send Email(s).', + 'server_not_confirm' : 'Please Verify Email Server, without verifying you can not send Email(s).' +} logger = netsvc.Logger() - + class smtpclient(osv.osv): _name = 'email.smtpclient' @@ -123,6 +125,7 @@ class smtpclient(osv.osv): 'users_id': _get_users, 'verify_email': lambda *a: _("Verification Message. This is the code\n\n__code__\n\nyou must copy in the OpenERP Email Server (Verify Server wizard).\n\nCreated by user __user__"), } + server = {} smtpServer = {} @@ -555,7 +558,8 @@ class smtpclient(osv.osv): 'interval_number':1, 'interval_type':'minutes', 'user_id':uid, - 'numbercall':-1 + 'numbercall':-1, + 'doall':False } id = self.pool.get('ir.cron').create(cr, uid, res) self.write(cr, uid, ids, {'process_id':id}) diff --git a/addons/smtpclient/smtpclient_view.xml b/addons/smtpclient/smtpclient_view.xml index eda6bf43ee1..2f84cd64ac6 100644 --- a/addons/smtpclient/smtpclient_view.xml +++ b/addons/smtpclient/smtpclient_view.xml @@ -81,31 +81,30 @@ - - - - - + + + + + + + + + + + + + + + - - - - + + + + + + + - - - - - - - - - - @@ -135,11 +134,6 @@