Skip to content

Commit

Permalink
[FIX] attachment_log: Log message is updated
Browse files Browse the repository at this point in the history
  • Loading branch information
geomer198 committed Jan 11, 2025
1 parent fc0cd0a commit 3108f5e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions attachment_log/models/ir_attachment.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ def _post_add_create(self):
record = self.env[self.res_model].sudo().browse(self.res_id)
message = record.message_post(

Check warning on line 13 in attachment_log/models/ir_attachment.py

View check run for this annotation

Codecov / codecov/patch

attachment_log/models/ir_attachment.py#L11-L13

Added lines #L11 - L13 were not covered by tests
body=Markup(
_(
"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>")
% {
"username": self.create_uid.name,
"filename": self.name,
Expand Down

0 comments on commit 3108f5e

Please sign in to comment.