New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mail route to user alias ends up with ValueError: Mailbox unavailable - model res.users does not accept document update #29298
Comments
Hi @Perino01, you can't make an alias with a model without chatter - Closing this then as no issue, but constraint on the use, and for further questions, please refer to the forums instead. |
Hi @pedrobaeza . I think this is not a solutions. AFAIK it is not possible to configure alias to get email in user inbox using |
As said, a model without chatter can't be the target, so if it was working was due to a series of fortunate coincidences. |
@pedrobaeza , sure, you're right from technical point of view. In fact business functionality is affected: users cannot receive emails from outside world, because it is not possible to configure alias for user to handle emails in inbox. |
@pedrobaeza your solution is right and its seems working perfectly, but it's cause security issue because any user can see messages from contact's chatter. so how can solve this so any user can not read message of other user from chatter. |
The approach of Odoo is to not have "private" messages this way, as this is not corporate expected behavior. Anyone that can access the contact should see that messages for following the possible discussions. Any way, it's also an error in my opinion to generate a discussion around the contact itself. Use the proper document for that: lead, sales order, purchase order, task... |
@pedrobaeza In real case e.g we have 10 users and all can access contact. |
Then use chat for internal users. |
This is related to the commit a6c187a#diff-e10cece4f5d4b42029916523b610477f where the methods that delegated the message posting to the related models were removed.
Which is understandably confusing. |
They appear due to inheritance by delegation that puts as related fields all the fields from the parent model, so it's only a side effect. |
@pedrobaeza I was more referring to the explicite definition in the view. I'm not entirely sure but I think it's not needed anymore. For everyone else that need this behavior I just threw together a small module that restores it in v12. It even adds a button to quickly create an alias with proper parameters. Please be wary that since this commit you have to keep the user notification as 'Inbox'. |
Yes, it seems the fields in the view are a remnant that was forgotten to be removed. |
@pedrobaeza Today I've tried your small module from your last comment in this threat. I cannot see any changes at the moment. I still don't get the email in my Inbox and I do not see the new button to quickly create an alias with proper parameters, where should this button be? What do you mean wiith keep the user notification as 'Inbox'? do you mean the Option Notification 'Handle by Emails' in Users details? |
Sorry, it's not my module, and I discourage to use it. Use chat for users communication. You must ask or communicate anything in its repo, not here. |
Sorry for that, you are right! |
Let me guess it. They made this breaking change so that they can promote their highly valuable piece of enterprise functionality better. |
That's not true, @quiero. I have already explained why in #29298 (comment) This is not Outlook/Thunderbird/Gmail. This is an enterprise communication system. Enterprise doesn't have this option as well. There's no way to do it, so no possible explanation. Not sure if you are Spanish (due to your login), but if so, see also this video of a presentation I made on "Spanish Odoo Days" about the paradigm of communication with Odoo: |
@pedrobaeza This is a false statement, Pedro. The fact is you just cut a piece of communication functionality in favor of some fluffy paradigm. You're cutting it little by little all along the way and this is kinda normal for you as I see. And the fact it is not YET a part of some valuable enterprise addon has to do with your fear, but not vision.. Could you please just fix this issue rather than teaching us paradigms, lol |
I'm not an Odoo employee, so I don't have nothing to fix, and as said, this is not going to be fixed because of the paradigm. If you don't like it, you can move to Outlook + Excel + Access as your management system 😝 |
@pedrobaeza Oh, thanks for collaboration. You're a collaborator, aren't you? What an advice! Bravo! |
@pedrobaeza You know, that's not true, and it has nothing to do with Excel, Access, etc. Most of CRM/ERP Systems provide a full collaboration/communication interface. ;-) |
And this one does, but without individual mailboxes per se, as it's a nonsense in an enterprise environment. |
@pedrobaeza Tell us by what kind of authority you're here to decide what is nonsense and what is not. Clearly this is a feature many of us used in the previous versions. Who are you to decide for us what we would employ? This is a bit Microsoftish, isn't it? which makes you a good candidate for an Outlook team, lol |
What about click the "discuss" box in the "res.users" model and configure aliases? |
Not being able to divert messages to individual mailboxes anymore is not an improvement indeed. |
cc @LuceEasyPme |
Impacted versions: 12.0-20181204
Steps to reproduce: Creating user aliases according to https://www.odoo.com/de_DE/forum/hilfe-1/question/how-to-setup-email-alias-111570
Current behavior: According to https://www.odoo.com/de_DE/forum/hilfe-1/question/how-to-setup-email-alias-111570 I created aliases for all users. In this case it is firstname.lastname@mycompany.com. I checked userid from the database and did settings for Record Thread ID and Parent Record Thread ID in the alias configuration for the user.
While testing the configuration, no mails are received by the system. The mail will be sent to firstname.lastname@mycompany.com .The message in the inbox at the provider will be touched and set as read message. But the mail does not arrive to Odoo. When I check the logs I see the folloging error:
Video/Screenshot link (optional):
The text was updated successfully, but these errors were encountered: