-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
[16.0][ADD] attachment_log #3161
base: 16.0
Are you sure you want to change the base?
Conversation
9b18974
to
fc0cd0a
Compare
message = record.message_post( | ||
body=Markup( | ||
_( | ||
"User <b>%(username)s</b> is attached a new file: <i>%(filename)s</i>" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"User <b>%(username)s</b> is attached a new file: <i>%(filename)s</i>" | |
"<b>%(username)s</b> attached a file: <i>%(filename)s</i>" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would then show as Mitchell Admin attached a file: Invoice.pdf
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here are my concerns: why should we post a message for every attachment added?
What if an incoming email arrives with 10+ attachments in it? It will result in 10+ messages trashing the record chatter.
You can simply show name of the user who added attachment together with the creation date. That is.
"website": "https://github.com/OCA/server-tools", | ||
"license": "AGPL-3", | ||
"category": "Generic Modules", | ||
"depends": ["base", "mail"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You don't need to depend on base
because mail
already depends on it.
This module adds the following features for attachments: