The item.asset
object contains information held against an opportunity item asset record. These records contain details of the stock allocated to an opportunity item.
The item.asset
object can be accessed in opportunity document layouts:
{% for item in order.items %}
{% for asset in item.assets %}
{{ asset.asset_number }}
{% endfor %}
{% endfor %}
Or by using:
{% for asset in order.product_assets %}
{{ asset.asset_number }}
{% endfor %}
Or for sub-rented assets only:
{% for asset in order.supplier_item_assets %}
{{ asset.name }}
{% endfor }}
Or for assets in a container:
{% for asset in order.container_item_assets %}
{{ asset.name }}
{% endfor %}