def METHOD_NAME(self, vals):
    res = super(FatturaPAAttachment, self).METHOD_NAME(vals)
    if "datas" in vals and "message_ids" not in vals:
        for attachment in self:
            attachment.message_post(
                subject=_("E-invoice attachment changed"),
                body=_("User %s uploaded a new e-invoice file")
                % self.env.user.login,
            )
    return res