Skip to content

Instantly share code, notes, and snippets.

@weweliang
Created October 16, 2014 02:26
Show Gist options
  • Save weweliang/61ad300a5763c481d66f to your computer and use it in GitHub Desktop.
Save weweliang/61ad300a5763c481d66f to your computer and use it in GitHub Desktop.
2014-10-16 02:30:54,230 13186 INFO medeq openerp.addons.fetchmail.fetchmail: start checking for new emails on imap server wewe
2014-10-16 02:31:02,036 13186 INFO medeq openerp.addons.mail.mail_thread: Routing mail from wewe <[email protected]> to [email protected] with Message-Id <CAAyNhWvkXz+4iFjJiu4Gp00Artysi4LJ8NrQ3W6oEyRbOJXT2A@mail.gmail.com>: direct alias match: (u'res.users', 5, {}, 1, mail.alias(5,))
2014-10-16 02:31:02,116 13186 ERROR medeq openerp.addons.fetchmail.fetchmail: Failed to process mail from imap server wewe.
Traceback (most recent call last):
File "/home/odoo/GreenOdoo/source/addons/fetchmail/fetchmail.py", line 207, in fetch_mail
context=context)
File "/home/odoo/GreenOdoo/source/openerp/api.py", line 237, in wrapper
return old_api(self, *args, **kwargs)
File "/home/odoo/GreenOdoo/source/addons/mail/mail_thread.py", line 1161, in message_process
thread_id = self.message_route_process(cr, uid, msg_txt, msg, routes, context=context)
File "/home/odoo/GreenOdoo/source/openerp/api.py", line 237, in wrapper
return old_api(self, *args, **kwargs)
File "/home/odoo/GreenOdoo/source/addons/mail/mail_thread.py", line 1089, in message_route_process
new_msg_id = model_pool.message_post(cr, uid, [thread_id], context=context, subtype='mail.mt_comment', **message_dict)
File "/home/odoo/GreenOdoo/source/openerp/api.py", line 237, in wrapper
return old_api(self, *args, **kwargs)
File "/home/odoo/GreenOdoo/source/addons/hr/res_users.py", line 61, in message_post
return super(res_users, self).message_post(cr, uid, thread_id, context=context, **kwargs)
File "/home/odoo/GreenOdoo/source/openerp/api.py", line 237, in wrapper
return old_api(self, *args, **kwargs)
File "/home/odoo/GreenOdoo/source/addons/mail/res_users.py", line 141, in message_post
return self.pool['mail.thread'].message_post(cr, uid, uid, **kwargs)
File "/home/odoo/GreenOdoo/source/openerp/api.py", line 237, in wrapper
return old_api(self, *args, **kwargs)
File "/home/odoo/GreenOdoo/source/addons/mail/mail_thread.py", line 1648, in message_post
msg_id = mail_message.create(cr, uid, values, context=context)
File "/home/odoo/GreenOdoo/source/openerp/api.py", line 237, in wrapper
return old_api(self, *args, **kwargs)
File "/home/odoo/GreenOdoo/source/addons/mail/mail_message.py", line 808, in create
user_signature=context.get('mail_notify_user_signature', True))
File "/home/odoo/GreenOdoo/source/openerp/api.py", line 237, in wrapper
return old_api(self, *args, **kwargs)
File "/home/odoo/GreenOdoo/source/addons/mail/mail_message.py", line 852, in _notify
if message.subtype_id and message.model and message.res_id:
File "/home/odoo/GreenOdoo/source/openerp/fields.py", line 751, in __get__
self.determine_value(record)
File "/home/odoo/GreenOdoo/source/openerp/fields.py", line 846, in determine_value
record._prefetch_field(self)
File "/home/odoo/GreenOdoo/source/openerp/api.py", line 235, in wrapper
return new_api(self, *args, **kwargs)
File "/home/odoo/GreenOdoo/source/openerp/models.py", line 3159, in _prefetch_field
result = records.read(list(fnames), load='_classic_write')
File "/home/odoo/GreenOdoo/source/openerp/api.py", line 235, in wrapper
return new_api(self, *args, **kwargs)
File "/home/odoo/GreenOdoo/source/openerp/api.py", line 552, in new_api
result = method(self._model, cr, uid, self.ids, *args, **kwargs)
File "/home/odoo/GreenOdoo/source/addons/mail/mail_message.py", line 822, in read
self.check_access_rule(cr, uid, ids, 'read', context=context)
File "/home/odoo/GreenOdoo/source/openerp/api.py", line 237, in wrapper
return old_api(self, *args, **kwargs)
File "/home/odoo/GreenOdoo/source/addons/portal/mail_message.py", line 63, in check_access_rule
return super(mail_message, self).check_access_rule(cr, uid, ids=ids, operation=operation, context=context)
File "/home/odoo/GreenOdoo/source/openerp/api.py", line 237, in wrapper
return old_api(self, *args, **kwargs)
File "/home/odoo/GreenOdoo/source/addons/mail/mail_message.py", line 765, in check_access_rule
(self._description, operation))
except_orm: ('Access Denied', 'The requested operation cannot be completed due to security restrictions. Please contact your system administrator.\n\n(Document type: Message, Operation: read)')
2014-10-16 02:31:03,682 13186 INFO medeq openerp.addons.fetchmail.fetchmail: Fetched 1 email(s) on imap server wewe; 0 succeeded, 1 failed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment