{% extends "kewos:document" %} {# The loan receipt a borrower leaves with. The generic context resolves a many2one to its LABEL, not to an object: write `record.member_id`, never `record.member_id.name`. Two hops (the title behind the copy) are not available generically -- that is what a custom build_context is for. #} {% block body %}
| {{ t("library_loan.member_id") }} | {{ record.member_id }} |
|---|---|
| {{ t("library_loan.copy_id") }} | {{ record.copy_id }} |
| {{ t("library_loan.taken_on") }} | {{ record.taken_on }} |
| {{ t("library_loan.due_on") }} | {{ record.due_on }} |
| {{ t("library_loan.state") }} | {{ t("library_loan.state." ~ record.state) }} |
{{ t("library_loan.receipt.note") }}
{% endblock %}