Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
2 Antwoorden
3877 Weergaven

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
Annuleer
Beste antwoord

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
Annuleer
Auteur

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,

Auteur

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

Auteur

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 antwoord

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

Many thanks!

Avatar
Annuleer

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.

Auteur

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,

Auteur

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.

Gerelateerde posts Antwoorden Weergaven Activiteit
0
apr. 24
1027
0
feb. 23
1533
0
jul. 24
2796
0
mei 23
2583
2
jan. 23
2555