{% extends "admin/base_site.html" %} {% load i18n admin_urls %} {% block breadcrumbs %} {% endblock %} {% block extrastyle %} {{ block.super }} {% endblock %} {% block content %}

{% trans 'Orders containing selected products' %}

{% trans 'Back to Odoo products' %}

{% if error %}
{{ error }}
{% endif %}

{% trans 'Selected products' %}

{% trans 'Matching orders' %}

{% if orders %} {% for order in orders %}

{{ order.name }}

{% trans 'Customer' %}: {{ order.customer|default:'-' }}  |  {% trans 'State' %}: {{ order.state|default:'-' }}  |  {% trans 'Date' %}: {{ order.date_order|default:'-' }}  |  {% trans 'Total' %}: {{ order.amount_total|default:'-' }}

{% for line in order.lines %} {% endfor %}
{% trans 'Line description' %} {% trans 'Product' %} {% trans 'Quantity' %} {% trans 'Line total' %}
{{ line.name }} {{ line.product_name }} {{ line.quantity }} {{ line.total }}
{% endfor %} {% else %}

{% trans 'No matching orders found.' %}

{% endif %} {% endblock %}