vieterp / vieterp-mailbox

4 stars 10 forks source link

AssertionError: Invalid value mail.inbox(18,) in domain term ('res_id', '=', mail.inbox(18,)) #3

Open vikas-vg opened 6 years ago

vikas-vg commented 6 years ago

2017-12-17 18:59:13,636 15747 INFO mailbox odoo.addons.fetchmail.models.fetchmail: Failed to process mail from imap server asdf. Traceback (most recent call last): File "/home/sada_varti/github/odoo/odoo/addons/fetchmail/models/fetchmail.py", line 181, in fetch_mail res_id = MailThread.with_context(additionnal_context).message_process(server.object_id.model, data[0][1], save_original=server.original, strip_attachments=(not server.attach)) File "/home/sada_varti/github/odoo/odoo/addons/mail/models/mail_thread.py", line 1282, in message_process thread_id = self.message_route_process(msg_txt, msg, routes) File "/home/sada_varti/github/odoo/odoo/addons/mail/models/mail_thread.py", line 1214, in message_route_process new_msg = Model.browse(thread_id).message_post(subtype=internal and 'mail.mt_note' or 'mail.mt_comment', message_dict) File "/home/sada_varti/github/odoo/odoo/addons/mail/models/mail_thread.py", line 1845, in message_post messages = MailMessage.search(['&', ('res_id', '=', self.ids[0]), ('model', '=', model), ('message_type', '=', 'email')], order="id ASC", limit=1) File "/home/sada_varti/github/odoo/odoo/addons/calendar/models/mail_message.py", line 23, in search return super(Message, self).search(args, offset=offset, limit=limit, order=order, count=count) File "/home/sada_varti/github/odoo/odoo/odoo/models.py", line 1514, in search res = self._search(args, offset=offset, limit=limit, order=order, count=count) File "/home/sada_varti/github/odoo/odoo/addons/mail/models/mail_message.py", line 477, in _search count=count, access_rights_uid=access_rights_uid) File "/home/sada_varti/github/odoo/odoo/odoo/models.py", line 4218, in _search query = self._where_calc(args) File "/home/sada_varti/github/odoo/odoo/odoo/models.py", line 4019, in _where_calc where_clause, where_params = e.to_sql() File "/home/sada_varti/github/odoo/odoo/odoo/osv/expression.py", line 1290, in to_sql q, p = self.__leaf_to_sql(leaf) File "/home/sada_varti/github/odoo/odoo/odoo/osv/expression.py", line 1157, in __leaf_to_sql "Invalid value %r in domain term %r" % (right, leaf) AssertionError: Invalid value mail.inbox(18,) in domain term ('res_id', '=', mail.inbox(18,))