Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
2 Antworten
3755 Ansichten

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.

Avatar
Verwerfen
Beste Antwort

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

Avatar
Verwerfen
Autor

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,

Autor

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

Autor

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.

Beste Antwort

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

Many thanks!

Avatar
Verwerfen

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.

Autor

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,

Autor

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.

Verknüpfte Beiträge Antworten Ansichten Aktivität
0
Apr. 24
956
0
Feb. 23
1465
0
Juli 24
2685
0
Mai 23
2457
2
Jan. 23
2448