Tejas Tank (OpenERP) has proposed merging 
lp:~openerp-dev/openobject-addons/trunk-bug-950744-tta into 
lp:openobject-addons.

Requested reviews:
  OpenERP Core Team (openerp)
Related bugs:
  Bug #950744 in OpenERP Addons: "fetchmail can't run 'code' server action"
  https://bugs.launchpad.net/openobject-addons/+bug/950744

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-950744-tta/+merge/126618

Hello,

     Fixed the issue of fetchmail with right server action execution.

Thanks,
Tejas - TTA
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-950744-tta/+merge/126618
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/trunk-bug-950744-tta.
=== modified file 'fetchmail/fetchmail.py'
--- fetchmail/fetchmail.py	2012-08-21 21:09:53 +0000
+++ fetchmail/fetchmail.py	2012-09-27 07:32:31 +0000
@@ -195,7 +195,7 @@
                                                              strip_attachments=(not 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, uid, [server.action_id.id], {'active_id': res_id, 'active_ids':[res_id], 'active_model': context.get("thread_model")})
                             imap_server.store(num, '+FLAGS', '\\Seen')
                             cr.commit()
                         count += 1
@@ -220,7 +220,7 @@
                                                              strip_attachments=(not 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, uid, [server.action_id.id], {'active_id': res_id, 'active_ids':[res_id], 'active_model': context.get("thread_model")})
                         pop_server.dele(num)
                         cr.commit()
                     _logger.info("fetched/processed %s email(s) on %s server %s", numMsgs, server.type, server.name)

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to