Comments (7)
the difference should rather be that the email generated has a different object it is attached to. Can you check this?
from social.
This is the e-mail generated when clicking "send message" from the chatter box below a res.partner object :
This is the same e-mail generated when the module mail_notification_email_template is installed:
When I try to access it with the user that sent the message I get an access error.
I looked at the messages object and as you suggested there is a slight difference. Without module installed, it creates a comment type message attached to the res partner with "notified partners" holding followers of the document.
With the mail_notification_email_template module installed, it creates the same message, but it creates as well another message of type email attached to the mail.notification model. This record is created by administrator and may be the one that creates my access rights problems.
First: I don't know why it needs two mail.message records ?
Second: The second created record, if necessary, should as well be created by user instead of administrator, right?
from social.
First: One email to be sent out, the message to be shown under the object in question
Second: It should. I'm not aware of any sudoing involved here, so I'd suggest to debug through to see what's going on there.
from social.
you can probably circumvent your problem by setting auto delete on the email template
from social.
First: but why without the module, it creates only one mail.message record ? It still generate an e-mail, plus the message is in the mail thread in the object.
Auto delete was set on the template, so this does not change the behaviour. Maybe I have another module that does this sudo? I will try to debug and see if I can find the issue. Could you confirm if you have the same behaviour?
from social.
Even with debugging I cannot explain this behaviour, so any help would be appreciated. Here are a few other observations I made:
- email generated with the module have not the "is notification" checkbox
- email generated with the module have not the "reply to" field set
- email generated with the module is from "Administrator" instead of User, like if the user is not detected from the email_from field
- mail.notification record is from "Administrator" instead of User
- creates two mail.message records (one of type "notification" and one of type "email")
- notified partners are set on the "notification type mail.message" record but not on the "email type mail.message record"
- mail.mail record is linked to the "notification mail.message" record
from social.
Closing as fixed
from social.
Related Issues (20)
- Apply for several data-models with one System Parameter. HOT 1
- [14.0][16.0] Image gallery for mailing list HOT 1
- [16.0] mass_mailing_unique: error on install if existing 'mailing.contact' records with no email
- [16.0] python library dependency conflict 'pyparsing' (social/server-ux) HOT 9
- [15.0] base_search_mail_content compatibility
- Add CC and BCC to Followers
- mail_activity_done: wrong counters
- mail_drop_target: It no longer works with Outlook version 1.2024.223.300.
- [15.0] mail_drop_target - RPC_ERROR Odoo Server Error - (bug)
- [15.0] mail_activity_team: duplicated notifications (probably newer versions are affected)
- reply for imcoming mesage add catchall email
- Mail Activity Board available for v17
- [16.0] mail_gateway_whatsapp unable to send messages to client HOT 2
- [16.0] base_search_mail_content: Unable to access collaborator view in tasks within a project as portal user
- [17.0] mail_debrand - Button to view the quotation broken in debranded mail HOT 2
- [16.0]mail_optional_follower_notification: Not working on invoices.
- [15][16] base_search_mail_content: Don't search in the log information HOT 3
- mail_send_confirmation Can we not have the confirmation on Discuss Channel Messages?
- mail_drop_target: mail_drop_target.disable_notify should be True by default
- [17.0] mail_tracking starting endless email loop HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from social.