Giter Site home page Giter Site logo

Comments (7)

hbrunn avatar hbrunn commented on August 14, 2024

the difference should rather be that the email generated has a different object it is attached to. Can you check this?

from social.

ecino avatar ecino commented on August 14, 2024

This is the e-mail generated when clicking "send message" from the chatter box below a res.partner object :
mail1

This is the same e-mail generated when the module mail_notification_email_template is installed:
mail2

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.

hbrunn avatar hbrunn commented on August 14, 2024

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.

hbrunn avatar hbrunn commented on August 14, 2024

you can probably circumvent your problem by setting auto delete on the email template

from social.

ecino avatar ecino commented on August 14, 2024

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.

ecino avatar ecino commented on August 14, 2024

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.

pedrobaeza avatar pedrobaeza commented on August 14, 2024

Closing as fixed

from social.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.