跳至內容
選單
此問題已被標幟
2 回覆
3768 瀏覽次數

Dear,

I am figuring out an issue when try to setup the 'incoming Mail Servers'.

Version : ODOO15 CE

Modules :



I installed the correct modules and added the client id and secret as mentioned in the tech doc.


For 'Technical/Settings/Outgoing Mail Servers' the setup work and I am able to send email.


Now, In 'Technical/Settings/Incoming Mail Server' I added a new connection :



When 'Connect Your account' is selected, I have this error message


RPC_ERROR
Odoo Server Error
Traceback (most recent call last):
File "/opt/odoo/15.0/odoo/odoo/addons/base/models/ir_http\.py",\ line\ 237,\ in\ _dispatch
\ \ \ \ result\ =\ request\.dispatch\(\)
\ \ File\ "/opt/odoo/15\.0/odoo/odoo/http\.py",\ line\ 698,\ in\ dispatch
\ \ \ \ result\ =\ self\._call_function\(\*\*self\.params\)
\ \ File\ "/opt/odoo/15\.0/odoo/odoo/http\.py",\ line\ 368,\ in\ _call_function
\ \ \ \ return\ checked_call\(self\.db,\ \*args,\ \*\*kwargs\)
\ \ File\ "/opt/odoo/15\.0/odoo/odoo/service/model\.py",\ line\ 94,\ in\ wrapper
\ \ \ \ return\ f\(dbname,\ \*args,\ \*\*kwargs\)
\ \ File\ "/opt/odoo/15\.0/odoo/odoo/http\.py",\ line\ 357,\ in\ checked_call
\ \ \ \ result\ =\ self\.endpoint\(\*a,\ \*\*kw\)
\ \ File\ "/opt/odoo/15\.0/odoo/odoo/http\.py",\ line\ 921,\ in\ __call__
\ \ \ \ return\ self\.method\(\*args,\ \*\*kw\)
\ \ File\ "/opt/odoo/15\.0/odoo/odoo/http\.py",\ line\ 546,\ in\ response_wrap
\ \ \ \ response\ =\ f\(\*args,\ \*\*kw\)
\ \ File\ "/opt/odoo/15\.0/odoo/addons/web/controllers/main\.py",\ line\ 1328,\ in\ call_button
\ \ \ \ action\ =\ self\._call_kw\(model,\ method,\ args,\ kwargs\)
\ \ File\ "/opt/odoo/15\.0/odoo/addons/web/controllers/main\.py",\ line\ 1316,\ in\ _call_kw
\ \ \ \ return\ call_kw\(request\.env\[model\],\ method,\ args,\ kwargs\)
\ \ File\ "/opt/odoo/15\.0/odoo/odoo/api\.py",\ line\ 464,\ in\ call_kw
\ \ \ \ result\ =\ _call_kw_multi\(method,\ model,\ args,\ kwargs\)
\ \ File\ "/opt/odoo/15\.0/odoo/odoo/api\.py",\ line\ 451,\ in\ _call_kw_multi
\ \ \ \ result\ =\ method\(recs,\ \*args,\ \*\*kwargs\)
\ \ File\ "/opt/odoo/15\.0/odoo/addons/microsoft_outlook/models/microsoft_outlook_mixin\.py",\ line\ 84,\ in\ open_microsoft_outlook_uri
\ \ \ \ if\ not\ self\.smtp_user:
Exception

The\ above\ exception\ was\ the\ direct\ cause\ of\ the\ following\ exception:

Traceback\ \(most\ recent\ call\ last\):
\ \ File\ "/opt/odoo/15\.0/odoo/odoo/http\.py",\ line\ 654,\ in\ _handle_exception
\ \ \ \ return\ super\(JsonRequest,\ self\)\._handle_exception\(exception\)
\ \ File\ "/opt/odoo/15\.0/odoo/odoo/http.py", line 301, in _handle_exception
raise exception.with_traceback(None) from new_cause
AttributeError: 'fetchmail.server' object has no attribute 'smtp_user'

Thanks if anyone could highlight my path.

頭像
捨棄
最佳答案

Hi,

I think there is an issue in this commit. I already create issue ticket in GitHub.


Once this PR get merged it will get resolved in the odoo core:  https://github.com/odoo/odoo/pull/122483


Update:

Fixed in the core and just need to use the latest source code of odoo version.

Thanks

頭像
捨棄
作者

Dear Waleed,

Same behavior since yesterday.
Thanks for the share. Will track it but in case there is a fix, let me know. I was frustrated thinking a wrong setup in my Azure.

As mentioned above, I am using ODOO15[CE]. The issue was when I tried to install a fresh new vm two days ago without any extra odoo modules.

As usual, I have forced a git pull from odoo repo then forced an Upgrade ( Go to Setting>Modules>Installed Module>Base and Upgraded ).

Best Regards,

作者

I have another issue but maybe just a setup is regarding outgoing email, send on behalf of the email account registered in outgoing mail server.
https://www.odoo.com/forum/help-1/microsoft365-technical-settings-outgoing-mail-server-send-email-on-behalf-of-the-email-address-accounting-xxx-be-for-any-registered-user-in-odoo-225185

作者

FYI, the fix is merged on odoo 14,15,16, ... https://github.com/odoo/odoo/pull/122483

With Odoo 15 CE, the fix works and I am able to get the 'Outlook Token Valid' and fetch email again.

最佳答案

Hi @Boujraf, did you manage to find the solution?

Many thanks!

頭像
捨棄

There is an open PR in https://github.com/odoo/odoo/pull/122222 and once merged you can pull the latest code and upgrade your module.

作者

Dear
For new installation, I am using the backup of my previous vm installation.
As mentionned Mister Waleed, as soon the PR will be merged we could pull.
Will inform you asap

Best Regards,

作者

FYI, the fix is merged on odoo 14,15,16, ... https://github.com/odoo/odoo/pull/122483

With Odoo 15 CE, the fix works and I am able to get the 'Outlook Token Valid' and fetch email again.

相關帖文 回覆 瀏覽次數 活動
0
4月 24
972
0
2月 23
1478
0
7月 24
2701
0
5月 23
2466
2
1月 23
2468