<?xml version="1.0"?>
<t t-name="mrp.report_mrp_bom_pdf_line">
        <t t-set="currency" t-value="data['currency']"/>
        <t t-foreach="data['lines']" t-as="l">
            <tr t-if="l['visible'] and (l['type'] != 'operation' or data['show_operations'])">
                <td name="td_mrp_code">
                    <span t-attf-style="margin-left: {{ str(l['level'] * 20) }}px"/>
                    <span t-esc="l['name']"/>
                </td>
                <td class="text-end">
                    <t t-if="l['type'] == 'operation'" t-esc="l['quantity']" t-options="{&quot;widget&quot;: &quot;float_time&quot;}"/>
                    <t t-else="" t-esc="l['quantity']" t-options="{&quot;widget&quot;: &quot;float&quot;, &quot;decimal_precision&quot;: &quot;Product Unit of Measure&quot;}"/>
                </td>
                <td class="text-start" groups="uom.group_uom">
                    <t t-esc="l['uom']"/>
                </td>
                <td t-if="data['show_availabilities']" class="text-end">
                    <t t-if="l.get('producible_qty', False) is not False" t-esc="l['producible_qty']" t-options="{'widget': 'float', 'precision': 0}"/>
                </td>
                <td t-if="data['show_availabilities']" class="text-end">
                    <t t-if="l.get('quantity_available', False) is not False">
                        <t t-esc="l['quantity_available']" t-options="{&quot;widget&quot;: &quot;float&quot;, &quot;decimal_precision&quot;: &quot;Product Unit of Measure&quot;}"/> /
                        <t t-esc="l['quantity_on_hand']" t-options="{&quot;widget&quot;: &quot;float&quot;, &quot;decimal_precision&quot;: &quot;Product Unit of Measure&quot;}"/>
                    </t>
                </td>
                <td t-if="data['show_availabilities']" class="text-center">
                    <t t-if="l.get('availability_state', None) != None">
                        <span t-attf-class="{{'text-success' if l['availability_state'] == 'available' else ''}}{{'text-warning' if l['availability_state'] == 'expected' else ''}}{{'text-danger' if l['availability_state'] == 'unavailable' else ''}}" t-esc="l['availability_display']"/>
                    </t>
                </td>
                <td t-if="data['show_lead_times']" class="text-end">
                    <span t-if="l.get('lead_time', False) is not False">
                        <t t-esc="l['lead_time']" t-options="{'widget': 'float', 'precision': 0}"/>
                        Days
                    </span>
                </td>
                <td>
                    <span t-if="l.get('route_name')" t-attf-class="{{'text-danger' if l.get('route_alert') else ''}}"><t t-esc="l['route_name']"/>: <t t-esc="l['route_detail']"/></span>
                </td>
                <td t-if="data['show_costs']" t-attf-class="text-end {{ 'text-muted' if l['type'] == 'component' else '' }}" t-esc="l['bom_cost']" t-options="{&quot;widget&quot;: &quot;monetary&quot;, &quot;display_currency&quot;: currency}"/>
                <td t-if="data['show_costs']" class="text-end">
                    <span t-if="'prod_cost' in l" t-esc="l['prod_cost']" t-options="{&quot;widget&quot;: &quot;monetary&quot;, &quot;display_currency&quot;: currency}"/>
                </td>
            </tr>
        </t>
    </t>
    