summaryrefslogtreecommitdiff
path: root/addons/fetchmail/fetchmail.py
diff options
context:
space:
mode:
authoruco (OpenERP) <uco@tinyerp.com>2010-12-09 18:22:28 +0530
committeruco (OpenERP) <uco@tinyerp.com>2010-12-09 18:22:28 +0530
commit670d636d4ba8dd7f85ac1f811b04eeafce582c7a (patch)
tree778cc5ceb18486871a90eb385ae53dfffebf5442 /addons/fetchmail/fetchmail.py
parente33d7639314244aaa976530cf2a0e16602bf6d2e (diff)
[FIX] fetchmail: Corrected user_id problem for server actions too.
lp bug: https://launchpad.net/bugs/680884 fixed bzr revid: uco@tinyerp.com-20101209125228-7y95zoww45vl3v1m
Diffstat (limited to 'addons/fetchmail/fetchmail.py')
-rw-r--r--addons/fetchmail/fetchmail.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/fetchmail/fetchmail.py b/addons/fetchmail/fetchmail.py
index d72467aafd5..8bebe514402 100644
--- a/addons/fetchmail/fetchmail.py
+++ b/addons/fetchmail/fetchmail.py
@@ -170,7 +170,7 @@ class email_server(osv.osv):
result, data = imap_server.fetch(num, '(RFC822)')
res_id = email_tool.process_email(cr, user, server.object_id.model, data[0][1], attach=server.attach, context=context)
if res_id and server.action_id:
- action_pool.run(cr, uid, [server.action_id.id], {'active_id': res_id, 'active_ids':[res_id]})
+ action_pool.run(cr, user, [server.action_id.id], {'active_id': res_id, 'active_ids':[res_id]})
imap_server.store(num, '+FLAGS', '\\Seen')
count += 1
@@ -187,7 +187,7 @@ class email_server(osv.osv):
msg = '\n'.join(msges)
res_id = email_tool.process_email(cr, user, server.object_id.model, msg, attach=server.attach, context=context)
if res_id and server.action_id:
- action_pool.run(cr, uid, [server.action_id.id], {'active_id': res_id, 'active_ids':[res_id]})
+ action_pool.run(cr, user, [server.action_id.id], {'active_id': res_id, 'active_ids':[res_id]})
pop_server.dele(num)