Skip to Content
Menu
This question has been flagged
3 Replies
3092 Views

Dear all, 

I try to send emails to odoo. I  ve setup an email account. I ve setup odoo to fetch mail from IMAP server.

the setup seems to be correct.

odoo fetches the new mail

2020-01-09 07:57:05,590 1 INFO odoo odoo.addons.fetchmail.models.fetchmail: start checking for new emails on imap server MailTest 
2020-01-09 07:57:05,941 1 INFO odoo werkzeug: 172.25.0.1 - - [09/Jan/2020 07:57:05] "POST /longpolling/poll HTTP/1.1" 200 - 22 0.031 50.149 
2020-01-09 07:57:06,180 1 INFO odoo odoo.addons.mail.models.mail_thread: Routing mail from XXXXXX <info@xxx.xx> to rechnung@xxx.xx with Message-Id <6269ef95-0771-9b0a-f3f7-8c5189a62fb2@xxx.xx>: fallback to model:mail.channel, thread_id:None, custom_values:None, uid:2 
2020-01-09 07:57:06,763 1 INFO odoo odoo.addons.fetchmail.models.fetchmail: Fetched 1 email(s) on imap server MailTest; 1 succeeded, 0 failed. 
2020-01-09 07:57:07,514 1 INFO odoo werkzeug: 172.25.0.1 - - [09/Jan/2020 07:57:07] "POST /web/dataset/call_button HTTP/1.1" 200 - 144 0.284 1.649 
2020-01-09 07:57:07,561 1 INFO odoo werkzeug: 172.25.0.1 - - [09/Jan/2020 07:57:07] "POST /web/dataset/call_kw/fetchmail.server/read HTTP/1.1" 200 - 3 0.003 0.013 
2020-01-09 07:57:35,831 1 INFO odoo werkzeug: 172.25.0.1 - - [09/Jan/2020 07:57:35] "POST /web/dataset/call_kw/mail.message/message_fetch HTTP/1.1" 200 - 4 0.007 0.014

but I am not able to find the mail in the system.

I ve tried different actions for incoming mails.

at first i tried  account.move for incomming bills, I dont find them

than i tried mail.channel, and I also dont find the mail.

Of course I ve send a new mail after the change


I use the currnent version 13


can some one give me a hint

thx


Avatar
Discard

you are not getting any error right? Activate Developer Mode and Goto Menu Technical->Email and check mails.

Author Best Answer

Activate Developer Mode and Goto Menu Technical->Email and check mails.   -> I ve found it.

the mail is in  mail.channel  

 ve also checked for  account.move 

there is an error

2020-01-09 11:20:34,296 1 INFO odoo odoo.addons.fetchmail.models.fetchmail: start checking for new emails on imap server MailTest
2020-01-09 11:20:36,065 1 INFO odoo odoo.addons.mail.models.mail_thread: Routing mail from XXXX<info@xxx.xx> to rechnung@xxx.xx with Message-Id <356803cf-a740-f4b9-a2ac-ff85f6472313@xxx.xx>: fallback to model:account.move, thread_id:None, custom_values:None, uid:2 
2020-01-09 11:20:36,066 1 INFO odoo odoo.addons.fetchmail.models.fetchmail: Failed to process mail from imap server MailTest.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/odoo/addons/fetchmail/models/fetchmail.py", line 170, 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 "/usr/lib/python3/dist-packages/odoo/addons/mail/models/mail_thread.py", line 1118, in message_process
thread_id = self._message_route_process(message, msg_dict, routes)
File "/usr/lib/python3/dist-packages/odoo/addons/mail/models/mail_thread.py", line 1032, in _message_route_process
thread = ModelCtx.message_new(message_dict, custom_values)
File "/usr/lib/python3/dist-packages/odoo/addons/account/models/account_move.py", line 1974, in message_new
if custom_values.get('type', 'entry') not in ('out_invoice', 'in_invoice'):
AttributeError: 'NoneType' object has no attribute 'get'
2020-01-09 11:20:36,090 1 INFO odoo odoo.addons.fetchmail.models.fetchmail: Fetched 1 email(s) on imap server MailTest; 0 succeeded, 1 failed.
2020-01-09 11:20:36,395 1 INFO odoo werkzeug: 172.25.0.1 - - [09/Jan/2020 11:20:36] "POST /web/dataset/call_button HTTP/1.1" 200 - 47 0.080 2.027
2020-01-09 11:20:36,435 1 INFO odoo werkzeug: 172.25.0.1 - - [09/Jan/2020 11:20:36] "POST /web/dataset/call_kw/fetchmail.server/read HTTP/1.1" 200 - 3 0.003 0.012

thanks




Avatar
Discard
Best Answer

Hello,

you need to check Lead/Opportunity, there should be created record automatically.

(if Lead menu not displayed then activate from CRM Settings)


Thanks

Sunny Sheth

Avatar
Discard
Related Posts Replies Views Activity
0
Nov 24
114
1
Aug 24
678
2
Jan 24
807
2
Dec 22
3546
0
Aug 22
1224