diff options
| author | Antoine Huvelle <ahu@openerp.com> | 2012-03-15 15:33:40 +0100 |
|---|---|---|
| committer | Antoine Huvelle <ahu@openerp.com> | 2012-03-15 15:33:40 +0100 |
| commit | bea0aa0229334821f665ce2fb29eda9cd915acf4 (patch) | |
| tree | cb77aecde78220855a68eaf165ce2de64c8a96b0 /addons/fetchmail/fetchmail.py | |
| parent | 0284caa8f089f4e86a93d90878a953036b1dc2ad (diff) | |
[IMP] changes in fetchmail and automated action to pass active_model info
bzr revid: ahu@openerp.com-20120315143340-eec06wl7o1xb5oj9
Diffstat (limited to 'addons/fetchmail/fetchmail.py')
| -rw-r--r-- | addons/fetchmail/fetchmail.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/fetchmail/fetchmail.py b/addons/fetchmail/fetchmail.py index d1e23f49166..1588f63b9e7 100644 --- a/addons/fetchmail/fetchmail.py +++ b/addons/fetchmail/fetchmail.py @@ -192,7 +192,7 @@ openerp_mailgate.py -u %(uid)d -p PASSWORD -o %(model)s -d %(dbname)s --host=HOS 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':server.object_id.model}) imap_server.store(num, '+FLAGS', '\\Seen') cr.commit() count += 1 |
