Skip to content
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

Open
wants to merge 2 commits into
base: 16.0
Choose a base branch
from

Conversation

geomer198
Copy link

This module adds the following features for attachments:

  • Displays the date and time when each attachment was added under the attachment file
  • Records chatter messages showing which user linked or unlinked files to attachments

@geomer198 geomer198 force-pushed the 16.0-t4242-attachment-log-add branch from 9b18974 to fc0cd0a Compare January 9, 2025 17:48
message = record.message_post(
body=Markup(
_(
"User <b>%(username)s</b> is attached a new file: <i>%(filename)s</i>"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"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>"

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

Copy link
Member

@ivs-cetmix ivs-cetmix left a 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"],
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants