{"en_US": "<t t-name=\"mrp.report_mrp_bom\">\n        <div class=\"o_mrp_bom_report_page container py-3 py-lg-5 px-0 bg-view\">\n            <div t-if=\"data.get('lines')\">\n                <div class=\"px-3 mb-5\">\n                    <h1>BoM Overview</h1>\n                    <h3 t-esc=\"data['name']\"/>\n                    <hr t-if=\"data['bom_code']\"/>\n                    <h6 t-if=\"data['bom_code']\">Reference: <t t-esc=\"data['bom_code']\"/></h6>\n                </div>\n                <t t-set=\"currency\" t-value=\"data['currency']\"/>\n                <table class=\"o_mrp_bom_expandable table table-borderless\">\n                    <thead>\n                        <tr>\n                            <th name=\"th_mrp_bom_h\">Product</th>\n                            <th class=\"text-end\">Quantity</th>\n                            <th class=\"text-end\" groups=\"uom.group_uom\"/>\n                            <th t-if=\"data['show_availabilities']\" class=\"text-end\">Ready to Produce</th>\n                            <th t-if=\"data['show_availabilities']\" class=\"text-end\">Free to Use / On Hand</th>\n                            <th t-if=\"data['show_availabilities']\" class=\"text-center\">Availability</th>\n                            <th t-if=\"data['show_lead_times']\" class=\"text-end\">Lead Time</th>\n                            <th>Route</th>\n                            <th t-if=\"data['show_costs']\" class=\"text-end\">BoM Cost</th>\n                            <th t-if=\"data['show_costs']\" class=\"text-end\">Product Cost</th>\n                        </tr>\n                    </thead>\n                    <tbody>\n                        <tr>\n                            <td name=\"td_mrp_bom\" t-esc=\"data['name']\"/>\n                            <td class=\"text-end\" t-esc=\"data['quantity']\" t-options=\"{&quot;widget&quot;: &quot;float&quot;, &quot;decimal_precision&quot;: &quot;Product Unit of Measure&quot;}\"/>\n                            <td class=\"text-start\" groups=\"uom.group_uom\" t-esc=\"data['uom_name']\"/>\n                            <td t-if=\"data['show_availabilities']\" class=\"text-end\" t-esc=\"data['producible_qty']\" t-options=\"{'widget': 'float', 'precision': 0}\"/>\n                            <td t-if=\"data['show_availabilities']\" class=\"text-end\">\n                                <t t-esc=\"data['quantity_available']\" t-options=\"{&quot;widget&quot;: &quot;float&quot;, &quot;decimal_precision&quot;: &quot;Product Unit of Measure&quot;}\"/> /\n                                <t t-esc=\"data['quantity_on_hand']\" t-options=\"{&quot;widget&quot;: &quot;float&quot;, &quot;decimal_precision&quot;: &quot;Product Unit of Measure&quot;}\"/>\n                            </td>\n                            <td t-if=\"data['show_availabilities']\" class=\"text-center\">\n                                <t t-if=\"data.get('components_available', None) != None\">\n                                    <span t-attf-class=\"{{'text-success' if data['components_available'] and data['availability_state'] != 'unavailable' else 'text-danger' }}\" t-esc=\"data['availability_display']\"/>\n                                </t>\n                            </td>\n                            <td t-if=\"data['show_lead_times']\" class=\"text-end\">\n                                <span t-if=\"data['lead_time'] is not False\">\n                                    <t t-esc=\"data['lead_time']\" t-options=\"{'widget': 'float', 'precision': 0}\"/>\n                                    Days\n                                </span>\n                            </td>\n                            <td>\n                                <span t-if=\"data['route_name']\" t-attf-class=\"{{'text-danger' if data.get('route_alert') else ''}}\"><t t-esc=\"data['route_name']\"/>: </span>\n                                <span t-esc=\"data['route_detail']\"/>\n                            </td>\n                            <td t-if=\"data['show_costs']\" class=\"text-end\" t-esc=\"data['bom_cost']\" t-options=\"{&quot;widget&quot;: &quot;monetary&quot;, &quot;display_currency&quot;: currency}\"/>\n                            <td t-if=\"data['show_costs']\" class=\"text-end\" t-esc=\"data['prod_cost']\" t-options=\"{&quot;widget&quot;: &quot;monetary&quot;, &quot;display_currency&quot;: currency}\"/>\n                        </tr>\n                        <t t-call=\"mrp.report_mrp_bom_pdf_line\"/>\n                    </tbody>\n                    <tfoot>\n                        <tr t-if=\"data['show_costs']\">\n                            <td name=\"td_mrp_bom_f\" class=\"text-end\">\n                                <span t-if=\"data['byproducts']\" t-esc=\"data['name']\"/>\n                            </td>\n                            <td class=\"text-end\"><strong>Unit Cost</strong></td>\n                            <td class=\"text-start\" groups=\"uom.group_uom\" t-esc=\"data['uom_name']\"/>\n                            <td t-if=\"data['show_availabilities']\"/>\n                            <td t-if=\"data['show_availabilities']\"/>\n                            <td t-if=\"data['show_availabilities']\"/>\n                            <td t-if=\"data['show_lead_times']\"/>\n                            <td/>\n                            <td class=\"text-end\" t-esc=\"data['bom_cost'] / data['quantity']\" t-options=\"{&quot;widget&quot;: &quot;monetary&quot;, &quot;display_currency&quot;: currency}\"/>\n                            <td class=\"text-end\" t-esc=\"data['prod_cost']/data['quantity']\" t-options=\"{&quot;widget&quot;: &quot;monetary&quot;, &quot;display_currency&quot;: currency}\"/>\n                        </tr>\n                        <t t-if=\"data['show_costs'] and data['byproducts']\" t-foreach=\"data['byproducts']\" t-as=\"byproduct\">\n                            <tr t-if=\"byproduct['quantity'] &gt; 0\">\n                                <td name=\"td_mrp_bom_byproducts_f\" class=\"text-end\" t-esc=\"byproduct['name']\"/>\n                                <td class=\"text-end\"><strong>Unit Cost</strong></td>\n                                <td class=\"text-start\" groups=\"uom.group_uom\" t-esc=\"byproduct['uom_name']\"/>\n                                <td t-if=\"data['show_availabilities']\"/>\n                                <td t-if=\"data['show_availabilities']\"/>\n                                <td t-if=\"data['show_availabilities']\"/>\n                                <td t-if=\"data['show_lead_times']\"/>\n                                <td/>\n                                <td class=\"text-end\" t-esc=\"byproduct['bom_cost'] / byproduct['quantity']\" t-options=\"{&quot;widget&quot;: &quot;monetary&quot;, &quot;display_currency&quot;: currency}\"/>\n                                <td class=\"text-end\" t-esc=\"byproduct['prod_cost'] / byproduct['quantity']\" t-options=\"{&quot;widget&quot;: &quot;monetary&quot;, &quot;display_currency&quot;: currency}\"/>\n                            </tr>\n                        </t>\n                    </tfoot>\n                </table>\n            </div>\n            <div t-else=\"\" class=\"d-flex align-items-center justify-content-center h-50\">\n                <h4 class=\"text-muted\">No data available.</h4>\n            </div>\n        </div>\n    </t>", "es_ES": "<t t-name=\"mrp.report_mrp_bom\">\n        <div class=\"o_mrp_bom_report_page container py-3 py-lg-5 px-0 bg-view\">\n            <div t-if=\"data.get('lines')\">\n                <div class=\"px-3 mb-5\">\n                    <h1>Resumen de la LdM</h1>\n                    <h3 t-esc=\"data['name']\"/>\n                    <hr t-if=\"data['bom_code']\"/>\n                    <h6 t-if=\"data['bom_code']\">Referencia: <t t-esc=\"data['bom_code']\"/></h6>\n                </div>\n                <t t-set=\"currency\" t-value=\"data['currency']\"/>\n                <table class=\"o_mrp_bom_expandable table table-borderless\">\n                    <thead>\n                        <tr>\n                            <th name=\"th_mrp_bom_h\">Producto</th>\n                            <th class=\"text-end\">Cantidad</th>\n                            <th class=\"text-end\" groups=\"uom.group_uom\"/>\n                            <th t-if=\"data['show_availabilities']\" class=\"text-end\">Listo para producir</th>\n                            <th t-if=\"data['show_availabilities']\" class=\"text-end\">Disponible / Stock real</th>\n                            <th t-if=\"data['show_availabilities']\" class=\"text-center\">Disponibilidad</th>\n                            <th t-if=\"data['show_lead_times']\" class=\"text-end\">Plazo de entrega</th>\n                            <th>Ruta</th>\n                            <th t-if=\"data['show_costs']\" class=\"text-end\">Coste de la LdM</th>\n                            <th t-if=\"data['show_costs']\" class=\"text-end\">Coste del producto</th>\n                        </tr>\n                    </thead>\n                    <tbody>\n                        <tr>\n                            <td name=\"td_mrp_bom\" t-esc=\"data['name']\"/>\n                            <td class=\"text-end\" t-esc=\"data['quantity']\" t-options=\"{&quot;widget&quot;: &quot;float&quot;, &quot;decimal_precision&quot;: &quot;Product Unit of Measure&quot;}\"/>\n                            <td class=\"text-start\" groups=\"uom.group_uom\" t-esc=\"data['uom_name']\"/>\n                            <td t-if=\"data['show_availabilities']\" class=\"text-end\" t-esc=\"data['producible_qty']\" t-options=\"{'widget': 'float', 'precision': 0}\"/>\n                            <td t-if=\"data['show_availabilities']\" class=\"text-end\">\n                                <t t-esc=\"data['quantity_available']\" t-options=\"{&quot;widget&quot;: &quot;float&quot;, &quot;decimal_precision&quot;: &quot;Product Unit of Measure&quot;}\"/> /\n                                <t t-esc=\"data['quantity_on_hand']\" t-options=\"{&quot;widget&quot;: &quot;float&quot;, &quot;decimal_precision&quot;: &quot;Product Unit of Measure&quot;}\"/>\n                            </td>\n                            <td t-if=\"data['show_availabilities']\" class=\"text-center\">\n                                <t t-if=\"data.get('components_available', None) != None\">\n                                    <span t-attf-class=\"{{'text-success' if data['components_available'] and data['availability_state'] != 'unavailable' else 'text-danger' }}\" t-esc=\"data['availability_display']\"/>\n                                </t>\n                            </td>\n                            <td t-if=\"data['show_lead_times']\" class=\"text-end\">\n                                <span t-if=\"data['lead_time'] is not False\">\n                                    <t t-esc=\"data['lead_time']\" t-options=\"{'widget': 'float', 'precision': 0}\"/>\n                                    Días\n                                </span>\n                            </td>\n                            <td>\n                                <span t-if=\"data['route_name']\" t-attf-class=\"{{'text-danger' if data.get('route_alert') else ''}}\"><t t-esc=\"data['route_name']\"/>: </span>\n                                <span t-esc=\"data['route_detail']\"/>\n                            </td>\n                            <td t-if=\"data['show_costs']\" class=\"text-end\" t-esc=\"data['bom_cost']\" t-options=\"{&quot;widget&quot;: &quot;monetary&quot;, &quot;display_currency&quot;: currency}\"/>\n                            <td t-if=\"data['show_costs']\" class=\"text-end\" t-esc=\"data['prod_cost']\" t-options=\"{&quot;widget&quot;: &quot;monetary&quot;, &quot;display_currency&quot;: currency}\"/>\n                        </tr>\n                        <t t-call=\"mrp.report_mrp_bom_pdf_line\"/>\n                    </tbody>\n                    <tfoot>\n                        <tr t-if=\"data['show_costs']\">\n                            <td name=\"td_mrp_bom_f\" class=\"text-end\">\n                                <span t-if=\"data['byproducts']\" t-esc=\"data['name']\"/>\n                            </td>\n                            <td class=\"text-end\"><strong>Coste unitario</strong></td>\n                            <td class=\"text-start\" groups=\"uom.group_uom\" t-esc=\"data['uom_name']\"/>\n                            <td t-if=\"data['show_availabilities']\"/>\n                            <td t-if=\"data['show_availabilities']\"/>\n                            <td t-if=\"data['show_availabilities']\"/>\n                            <td t-if=\"data['show_lead_times']\"/>\n                            <td/>\n                            <td class=\"text-end\" t-esc=\"data['bom_cost'] / data['quantity']\" t-options=\"{&quot;widget&quot;: &quot;monetary&quot;, &quot;display_currency&quot;: currency}\"/>\n                            <td class=\"text-end\" t-esc=\"data['prod_cost']/data['quantity']\" t-options=\"{&quot;widget&quot;: &quot;monetary&quot;, &quot;display_currency&quot;: currency}\"/>\n                        </tr>\n                        <t t-if=\"data['show_costs'] and data['byproducts']\" t-foreach=\"data['byproducts']\" t-as=\"byproduct\">\n                            <tr t-if=\"byproduct['quantity'] &gt; 0\">\n                                <td name=\"td_mrp_bom_byproducts_f\" class=\"text-end\" t-esc=\"byproduct['name']\"/>\n                                <td class=\"text-end\"><strong>Coste unitario</strong></td>\n                                <td class=\"text-start\" groups=\"uom.group_uom\" t-esc=\"byproduct['uom_name']\"/>\n                                <td t-if=\"data['show_availabilities']\"/>\n                                <td t-if=\"data['show_availabilities']\"/>\n                                <td t-if=\"data['show_availabilities']\"/>\n                                <td t-if=\"data['show_lead_times']\"/>\n                                <td/>\n                                <td class=\"text-end\" t-esc=\"byproduct['bom_cost'] / byproduct['quantity']\" t-options=\"{&quot;widget&quot;: &quot;monetary&quot;, &quot;display_currency&quot;: currency}\"/>\n                                <td class=\"text-end\" t-esc=\"byproduct['prod_cost'] / byproduct['quantity']\" t-options=\"{&quot;widget&quot;: &quot;monetary&quot;, &quot;display_currency&quot;: currency}\"/>\n                            </tr>\n                        </t>\n                    </tfoot>\n                </table>\n            </div>\n            <div t-else=\"\" class=\"d-flex align-items-center justify-content-center h-50\">\n                <h4 class=\"text-muted\">Datos no disponibles</h4>\n            </div>\n        </div>\n    </t>"}