{% for timesheet in doc.timesheets %}
{{ timesheet.name }}
Link
{{ timesheet.status }}
{{ frappe.utils.format_date(timesheet.from_time, "medium") }}
{{ frappe.utils.format_date(timesheet.to_time, "medium") }}
{% set user_details = frappe .db .get_value("User", timesheet.modified_by, [ "full_name", "user_image" ], as_dict = True) %} {% if user_details.user_image %} {% else %}
{{ frappe.utils.get_abbr(user_details.full_name) }}
{% endif %}
{{ frappe.utils.pretty_date(timesheet.modified) }}
{% endfor %}