summaryrefslogtreecommitdiff
path: root/addons/fetchmail
diff options
context:
space:
mode:
authorArnaud Pineux <api@openerp.com>2012-11-16 09:50:42 +0100
committerArnaud Pineux <api@openerp.com>2012-11-16 09:50:42 +0100
commitdc3f98308d1fb9bca54dcc2d0dd0e4d7f66ca5aa (patch)
tree082c6c0cca740c774b6b24dc040222e4ec39e948 /addons/fetchmail
parent74a18de6cb6e4731cc75a53f1f3d06849dbadad7 (diff)
parent3c8626efbbe8b4d60154d0b9660cc9c0c0373e0b (diff)
[FIX] audittrail
lp bug: https://launchpad.net/bugs/1055813 fixed bzr revid: api@openerp.com-20121116085042-v8q78tof9jyuec07
Diffstat (limited to 'addons/fetchmail')
-rw-r--r--addons/fetchmail/fetchmail.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/addons/fetchmail/fetchmail.py b/addons/fetchmail/fetchmail.py
index e0023697594..68f05dfeee2 100644
--- a/addons/fetchmail/fetchmail.py
+++ b/addons/fetchmail/fetchmail.py
@@ -243,20 +243,20 @@ class mail_mail(osv.osv):
def create(self, cr, uid, values, context=None):
if context is None:
- context={}
+ context = {}
fetchmail_server_id = context.get('fetchmail_server_id')
if fetchmail_server_id:
values['fetchmail_server_id'] = fetchmail_server_id
- res = super(mail_mail,self).create(cr, uid, values, context=context)
+ res = super(mail_mail, self).create(cr, uid, values, context=context)
return res
def write(self, cr, uid, ids, values, context=None):
if context is None:
- context={}
+ context = {}
fetchmail_server_id = context.get('fetchmail_server_id')
if fetchmail_server_id:
- values['fetchmail_server_id'] = server_id
- res = super(mail_mail,self).write(cr, uid, ids, values, context=context)
+ values['fetchmail_server_id'] = fetchmail_server_id
+ res = super(mail_mail, self).write(cr, uid, ids, values, context=context)
return res