The invoice
object contains information held against an Invoice record. The invoice
object can be accessed in invoice document layouts:
{{ invoice.name }}
And from opportunity documents:
{% for invoice in order.invoices %}
{{ invoice.name }}
{% endfor %}
And from invoice discussion templates:
{{ invoice.name }}