{"en_US": "<t name=\"Sales Order Portal Content\" t-name=\"sale.sale_order_portal_content\">\n        <!-- Intro -->\n        <div id=\"introduction\" t-attf-class=\"#{'border-bottom-0 pt-0 pb-3' if report_type == 'html' else ''}\">\n            <div class=\"d-flex gap-2\" id=\"intro_row\">\n                <h2>\n                    <t t-out=\"sale_order.type_name\"/> -\n                    <em t-out=\"sale_order.name\"/>\n                </h2>\n            </div>\n        </div>\n        <div id=\"content\">\n            <div id=\"informations\" class=\"row\">\n                <span id=\"transaction_info\">\n                    <div t-if=\"sale_order.get_portal_last_transaction() and not invoices and sale_order.state in ('sent', 'sale') and portal_confirmation == 'pay' and not success and not error\" t-att-data-order-id=\"sale_order.id\">\n                        <t t-if=\"sale_order.transaction_ids\">\n                            <t t-call=\"payment.state_header\">\n                            <t t-set=\"tx\" t-value=\"sale_order.get_portal_last_transaction()\"/>\n                        </t>\n                    </t>\n                    </div>\n                </span>\n                <!-- Information -->\n                <div id=\"sale_info\" class=\"col-12 col-lg-6 mb-4\">\n                    <span id=\"sale_info_title\">\n                        <h5 class=\"mb-1\">Sale Information</h5>\n                        <hr class=\"mt-1 mb-2\"/>\n                    </span>\n                    <table class=\"table table-borderless table-sm\">\n                        <tbody style=\"white-space:nowrap\" id=\"sale_info_table\">\n                            <tr>\n                                <th t-if=\"sale_order.state in ['sale', 'cancel']\" class=\"ps-0 pb-0\">Order Date:</th>\n                                <th t-else=\"\" class=\"ps-0 pb-0\">Date:</th>\n                                <td class=\"w-100 pb-0 text-wrap\"><span t-field=\"sale_order.date_order\" t-options=\"{&quot;widget&quot;: &quot;date&quot;}\"/></td>\n                            </tr>\n                            <tr t-if=\"sale_order.commitment_date and sale_order.state in ['sent', 'sale']\">\n                                <th class=\"ps-0 pb-0\">Delivery Date:</th>\n                                <td class=\"w-100 pb-0 text-wrap\"><span t-field=\"sale_order.commitment_date\" t-options=\"{&quot;widget&quot;: &quot;date&quot;}\"/></td>\n                            </tr>\n                            <tr t-if=\"sale_order.validity_date and sale_order.state in ['draft', 'sent']\">\n                                <th class=\"ps-0 pb-0\">Expiration Date:</th>\n                                <td class=\"w-100 pb-0 text-wrap\"><span t-field=\"sale_order.validity_date\" t-options=\"{&quot;widget&quot;: &quot;date&quot;}\"/></td>\n                            </tr>\n                            <tr t-if=\"sale_order.client_order_ref\">\n                                <th class=\"ps-0 pb-0\">Your Reference:</th>\n                                <td class=\"w-100 pb-0 text-wrap\"><span t-field=\"sale_order.client_order_ref\"/></td>\n                            </tr>\n                        </tbody>\n                    </table>\n                </div>\n\n                <!-- ======  Customer Information  ====== -->\n                <div id=\"customer_info\" class=\"col-12 col-lg-6 mb-4\">\n                    <h5 class=\"mb-1\">\n                        <t t-if=\"sale_order.partner_shipping_id == sale_order.partner_invoice_id\">\n                            Invoicing and Shipping Address\n                        </t>\n                        <t t-else=\"\">\n                            Invoicing Address\n                        </t>\n                        <small t-if=\"sale_order.partner_id == sale_order.partner_invoice_id == sale_order.env.user.partner_id\">\n                            <a class=\"small\" t-attf-href=\"/my/account?redirect={{sale_order.get_portal_url()}}\">\n                                <i class=\"fa fa-fw fa-pencil\"/>\n                            </a>\n                        </small>\n                    </h5>\n                    <hr class=\"mt-1 mb-2\"/>\n                    <div t-field=\"sale_order.partner_invoice_id\" t-options=\"{'widget': 'contact', 'fields': ['name', 'address', 'phone', 'email']}\"/>\n                    <span t-if=\"sale_order.partner_shipping_id != sale_order.partner_invoice_id\" id=\"shipping_address\" class=\"col-lg-6\">\n                        <br/>\n                        <h5 class=\"mb-1\">\n                            Shipping Address\n                        </h5>\n                        <hr class=\"mt-1 mb-2\"/>\n                        <div t-field=\"sale_order.partner_shipping_id\" t-options=\"{ &quot;widget&quot;: &quot;contact&quot;, &quot;fields&quot;: [ &quot;name&quot;, &quot;address&quot;]}\"/>\n                    </span>\n                </div>\n                <t t-set=\"invoices\" t-value=\"sale_order.invoice_ids.filtered(lambda i: i.state not in ['draft', 'cancel']).sorted('date', reverse=True)[:3]\"/>\n                <div id=\"sale_invoices\" t-if=\"invoices and sale_order.state in ['sale', 'cancel']\" class=\"col-12 col-lg-6 mb-4\">\n                    <h5 class=\"mb-1\">Last Invoices</h5>\n                    <hr class=\"mt-1 mb-2\"/>\n                    <t t-foreach=\"invoices\" t-as=\"i\">\n                        <t t-set=\"report_url\" t-value=\"i.get_portal_url()\"/>\n                        <t t-set=\"authorized_tx_ids\" t-value=\"i.authorized_transaction_ids\"/>\n                        <div class=\"d-flex flex-column gap-2\">\n                            <div class=\"d-flex flex-column\">\n                                <div class=\"d-flex align-items-center justify-content-between\">\n                                    <a t-att-href=\"report_url\">\n                                        <span t-out=\"i.name\"/>\n                                    </a>\n                                    <div t-if=\"i.payment_state in ('paid', 'in_payment')\" class=\"small badge rounded-pill text-bg-success orders_label_text_align\">\n                                        <i class=\"fa fa-fw fa-check\"/> Paid\n                                    </div>\n                                    <div t-elif=\"i.payment_state == 'reversed'\" class=\"small badge text-bg-success orders_label_text_align\">\n                                        <i class=\"fa fa-fw fa-check\"/> Reversed\n                                    </div>\n                                    <div t-elif=\"authorized_tx_ids\" class=\"small badge rounded-pill text-bg-success orders_label_text_align\">\n                                        <i class=\"fa fa-fw fa-check\"/> Authorized\n                                    </div>\n                                    <div t-else=\"\" class=\"small badge rounded-pill text-bg-info orders_label_text_align\">\n                                        <i class=\"fa fa-fw fa-clock-o\"/> Waiting Payment\n                                    </div>\n                                </div>\n                                <div class=\"small d-lg-inline-block\">Date: <span class=\"text-muted\" t-field=\"i.invoice_date\"/></div>\n                            </div>\n                        </div>\n                    </t>\n                </div>\n            </div>\n\n            <section id=\"details\" style=\"page-break-inside: auto;\">\n                <t t-if=\"product_documents\">\n                    <h4 id=\"details\">Documents</h4>\n                    <div class=\"d-flex flex-grow-1 flex-wrap gap-1 mb32\">\n                        <t t-foreach=\"product_documents\" t-as=\"document_sudo\">\n                            <div class=\"bg-light p-2 rounded\">\n                                <div class=\"position-relative text-center\">\n                                    <t t-set=\"attachment_sudo\" t-value=\"document_sudo.ir_attachment_id\"/>\n                                    <t t-set=\"target\" t-value=\"attachment_sudo.type == 'url' and '_blank' or '_self'\"/>\n                                    <a t-att-href=\"sale_order.get_portal_url('/document/' + str(document_sudo.id))\" t-att-target=\"target\" class=\"d-flex flex-row\">\n                                        <div class=\"o_image\" t-att-title=\"attachment_sudo.name\" t-att-data-mimetype=\"attachment_sudo.mimetype\" t-attf-data-src=\"/web/image/#{attachment_sudo.id}/100x80?access_token=#{attachment_sudo.access_token}\"/>\n                                        <div class=\"o_portal_product_document align-self-center\" t-out=\"attachment_sudo.name\"/>\n                                    </a>\n                                </div>\n                            </div>\n                        </t>\n                    </div>\n                </t>\n\n                <t t-set=\"display_discount\" t-value=\"True in [line.discount &gt; 0 for line in sale_order.order_line]\"/>\n\n                <div class=\"table-responsive\">\n                    <table t-att-data-order-id=\"sale_order.id\" t-att-data-token=\"sale_order.access_token\" class=\"table table-sm\" id=\"sales_order_table\">\n                        <thead>\n                            <tr>\n                                <th class=\"text-start\" id=\"product_name_header\">Products</th>\n                                <th class=\"text-end\" id=\"product_qty_header\">Quantity</th>\n                                <th t-attf-class=\"text-end {{ 'd-none d-sm-table-cell' if report_type == 'html' else '' }}\">\n                                    Unit Price\n                                </th>\n                                <th t-if=\"display_discount\" t-attf-class=\"text-end {{ 'd-none d-sm-table-cell' if report_type == 'html' else '' }}\">\n                                    <span>Disc.%</span>\n                                </th>\n                                <th t-attf-class=\"text-end {{ 'd-none d-md-table-cell' if report_type == 'html' else '' }}\" id=\"taxes_header\">\n                                    <span>Taxes</span>\n                                </th>\n                                <th class=\"text-end\" id=\"subtotal_header\">\n                                    <span>Amount</span>\n                                </th>\n                            </tr>\n                        </thead>\n                        <tbody class=\"sale_tbody\">\n\n                            <t t-set=\"current_subtotal\" t-value=\"0\"/>\n                            <t t-set=\"lines_to_report\" t-value=\"sale_order._get_order_lines_to_report()\"/>\n\n                            <t t-foreach=\"lines_to_report\" t-as=\"line\">\n\n                                <t t-set=\"current_subtotal\" t-value=\"current_subtotal + line.price_subtotal\"/>\n\n                                <tr t-att-class=\"'fw-bold o_line_section' if (                                         line.display_type == 'line_section'                                         or line.product_type == 'combo'                                     )                                     else 'fst-italic o_line_note' if line.display_type == 'line_note'                                     else ''\">\n                                    <t name=\"product_line_row\" t-if=\"not line.display_type and line.product_type != 'combo'\">\n                                        <td id=\"product_name\">\n                                            <span t-field=\"line.name\"/>\n                                        </td>\n                                        <td class=\"text-end\" id=\"quote_qty_td\">\n                                            <div id=\"quote_qty\">\n                                                <span t-field=\"line.product_uom_qty\"/>\n                                                <span t-field=\"line.product_uom\"/>\n                                            </div>\n                                        </td>\n                                        <td t-attf-class=\"text-end {{ 'd-none d-sm-table-cell' if report_type == 'html' else '' }}\">\n                                            <div t-if=\"line.discount &gt;= 0\" t-field=\"line.price_unit\" t-att-style=\"line.discount and 'text-decoration: line-through' or None\" t-att-class=\"(line.discount and 'text-danger' or '') + ' text-end'\"/>\n                                            <div t-if=\"line.discount\">\n                                                <t t-out=\"(1-line.discount / 100.0) * line.price_unit\" t-options=\"{&quot;widget&quot;: &quot;float&quot;, &quot;decimal_precision&quot;: &quot;Product Price&quot;}\"/>\n                                            </div>\n                                        </td>\n                                        <td t-if=\"display_discount\" t-attf-class=\"text-end {{ 'd-none d-sm-table-cell' if report_type == 'html' else '' }}\">\n                                            <strong t-if=\"line.discount &gt; 0\" class=\"text-info\">\n                                                <t t-out=\"((line.discount % 1) and '%s' or '%d') % line.discount\"/>%\n                                            </strong>\n                                        </td>\n                                        <td t-attf-class=\"text-end {{ 'd-none d-md-table-cell' if report_type == 'html' else '' }}\" id=\"taxes\">\n                                            <span t-out=\"', '.join(map(lambda x: (x.name), line.tax_id))\"/>\n                                        </td>\n                                        <td t-if=\"not line.is_downpayment\" class=\"text-end\" id=\"subtotal\">\n                                        <span class=\"oe_order_line_price_subtotal\" t-field=\"line.price_subtotal\"/>\n                                        </td>\n                                    </t>\n                                    <t t-if=\"line.display_type == 'line_section' or line.product_type == 'combo'\">\n                                        <td colspan=\"99\">\n                                            <span t-field=\"line.name\"/>\n                                        </td>\n                                        <t t-set=\"current_section\" t-value=\"line\"/>\n                                        <t t-set=\"current_subtotal\" t-value=\"0\"/>\n                                    </t>\n                                    <t t-if=\"line.display_type == 'line_note'\">\n                                        <td colspan=\"99\">\n                                            <span t-field=\"line.name\"/>\n                                        </td>\n                                    </t>\n                                </tr>\n                                <tr t-if=\"current_section and (                                         line_last                                         or lines_to_report[line_index+1].display_type == 'line_section'                                         or lines_to_report[line_index+1].product_type == 'combo'                                         or (                                             line.combo_item_id                                             and not lines_to_report[line_index+1].combo_item_id                                         )                                     ) and not line.is_downpayment\" class=\"is-subtotal text-end\">\n                                    <t t-set=\"current_section\" t-value=\"None\"/>\n                                    <td colspan=\"99\">\n                                        <strong class=\"mr16\">Subtotal</strong>\n                                        <span t-out=\"current_subtotal\" t-options=\"{&quot;widget&quot;: &quot;monetary&quot;, &quot;display_currency&quot;: sale_order.currency_id}\"/>\n                                    </td>\n                                </tr>\n                            </t>\n                        </tbody>\n                    </table>\n                </div>\n\n                <div id=\"total\" name=\"total\" style=\"page-break-inside: avoid;\">\n                    <div class=\"col-xs-7 col-md-5 ms-auto\">\n                        <t t-call=\"sale.sale_order_portal_content_totals_table\"/>\n                    </div>\n                </div>\n            </section>\n\n            <section t-if=\"sale_order.signature\" id=\"signature\" name=\"Signature\">\n                <div class=\"row mt-4\" name=\"signature\">\n                    <div t-attf-class=\"#{'col-3' if report_type != 'html' else 'col-sm-7 col-md-4'} ms-auto text-center\">\n                        <h5>Signature</h5>\n                        <img t-att-src=\"image_data_uri(sale_order.signature)\" style=\"max-height: 6rem; max-width: 100%;\"/>\n                        <p t-field=\"sale_order.signed_by\"/>\n                    </div>\n                </div>\n            </section>\n\n            <section t-if=\"not is_html_empty(sale_order.note)\" id=\"terms\" class=\"mt-4\">\n                <h4 class=\"\">Terms &amp; Conditions</h4>\n                <hr class=\"mt-0 mb-1\"/>\n                <em t-field=\"sale_order.note\"/>\n            </section>\n\n            <section t-if=\"sale_order.payment_term_id\" class=\"mt-4\">\n                <h4 class=\"\">Payment terms</h4>\n                <hr class=\"mt-0 mb-1\"/>\n                <span t-field=\"sale_order.payment_term_id.note\"/>\n            </section>\n        </div>\n    </t>", "es_ES": "<t name=\"Sales Order Portal Content\" t-name=\"sale.sale_order_portal_content\">\n        <!-- Intro -->\n        <div id=\"introduction\" t-attf-class=\"#{'border-bottom-0 pt-0 pb-3' if report_type == 'html' else ''}\">\n            <div class=\"d-flex gap-2\" id=\"intro_row\">\n                <h2>\n                    <t t-out=\"sale_order.type_name\"/> -\n                    <em t-out=\"sale_order.name\"/>\n                </h2>\n            </div>\n        </div>\n        <div id=\"content\">\n            <div id=\"informations\" class=\"row\">\n                <span id=\"transaction_info\">\n                    <div t-if=\"sale_order.get_portal_last_transaction() and not invoices and sale_order.state in ('sent', 'sale') and portal_confirmation == 'pay' and not success and not error\" t-att-data-order-id=\"sale_order.id\">\n                        <t t-if=\"sale_order.transaction_ids\">\n                            <t t-call=\"payment.state_header\">\n                            <t t-set=\"tx\" t-value=\"sale_order.get_portal_last_transaction()\"/>\n                        </t>\n                    </t>\n                    </div>\n                </span>\n                <!-- Information -->\n                <div id=\"sale_info\" class=\"col-12 col-lg-6 mb-4\">\n                    <span id=\"sale_info_title\">\n                        <h5 class=\"mb-1\">Información de la venta</h5>\n                        <hr class=\"mt-1 mb-2\"/>\n                    </span>\n                    <table class=\"table table-borderless table-sm\">\n                        <tbody style=\"white-space:nowrap\" id=\"sale_info_table\">\n                            <tr>\n                                <th t-if=\"sale_order.state in ['sale', 'cancel']\" class=\"ps-0 pb-0\">Fecha de pedido:</th>\n                                <th t-else=\"\" class=\"ps-0 pb-0\">Fecha:</th>\n                                <td class=\"w-100 pb-0 text-wrap\"><span t-field=\"sale_order.date_order\" t-options=\"{&quot;widget&quot;: &quot;date&quot;}\"/></td>\n                            </tr>\n                            <tr t-if=\"sale_order.commitment_date and sale_order.state in ['sent', 'sale']\">\n                                <th class=\"ps-0 pb-0\">Fecha de entrega:</th>\n                                <td class=\"w-100 pb-0 text-wrap\"><span t-field=\"sale_order.commitment_date\" t-options=\"{&quot;widget&quot;: &quot;date&quot;}\"/></td>\n                            </tr>\n                            <tr t-if=\"sale_order.validity_date and sale_order.state in ['draft', 'sent']\">\n                                <th class=\"ps-0 pb-0\">Fecha de vencimiento:</th>\n                                <td class=\"w-100 pb-0 text-wrap\"><span t-field=\"sale_order.validity_date\" t-options=\"{&quot;widget&quot;: &quot;date&quot;}\"/></td>\n                            </tr>\n                            <tr t-if=\"sale_order.client_order_ref\">\n                                <th class=\"ps-0 pb-0\">Su referencia:</th>\n                                <td class=\"w-100 pb-0 text-wrap\"><span t-field=\"sale_order.client_order_ref\"/></td>\n                            </tr>\n                        </tbody>\n                    </table>\n                </div>\n\n                <!-- ======  Customer Information  ====== -->\n                <div id=\"customer_info\" class=\"col-12 col-lg-6 mb-4\">\n                    <h5 class=\"mb-1\">\n                        <t t-if=\"sale_order.partner_shipping_id == sale_order.partner_invoice_id\">\n                            Dirección de facturación y envío\n                        </t>\n                        <t t-else=\"\">\n                            Dirección de facturación\n                        </t>\n                        <small t-if=\"sale_order.partner_id == sale_order.partner_invoice_id == sale_order.env.user.partner_id\">\n                            <a class=\"small\" t-attf-href=\"/my/account?redirect={{sale_order.get_portal_url()}}\">\n                                <i class=\"fa fa-fw fa-pencil\"/>\n                            </a>\n                        </small>\n                    </h5>\n                    <hr class=\"mt-1 mb-2\"/>\n                    <div t-field=\"sale_order.partner_invoice_id\" t-options=\"{'widget': 'contact', 'fields': ['name', 'address', 'phone', 'email']}\"/>\n                    <span t-if=\"sale_order.partner_shipping_id != sale_order.partner_invoice_id\" id=\"shipping_address\" class=\"col-lg-6\">\n                        <br/>\n                        <h5 class=\"mb-1\">\n                            Dirección de envío\n                        </h5>\n                        <hr class=\"mt-1 mb-2\"/>\n                        <div t-field=\"sale_order.partner_shipping_id\" t-options=\"{ &quot;widget&quot;: &quot;contact&quot;, &quot;fields&quot;: [ &quot;name&quot;, &quot;address&quot;]}\"/>\n                    </span>\n                </div>\n                <t t-set=\"invoices\" t-value=\"sale_order.invoice_ids.filtered(lambda i: i.state not in ['draft', 'cancel']).sorted('date', reverse=True)[:3]\"/>\n                <div id=\"sale_invoices\" t-if=\"invoices and sale_order.state in ['sale', 'cancel']\" class=\"col-12 col-lg-6 mb-4\">\n                    <h5 class=\"mb-1\">Últimas facturas</h5>\n                    <hr class=\"mt-1 mb-2\"/>\n                    <t t-foreach=\"invoices\" t-as=\"i\">\n                        <t t-set=\"report_url\" t-value=\"i.get_portal_url()\"/>\n                        <t t-set=\"authorized_tx_ids\" t-value=\"i.authorized_transaction_ids\"/>\n                        <div class=\"d-flex flex-column gap-2\">\n                            <div class=\"d-flex flex-column\">\n                                <div class=\"d-flex align-items-center justify-content-between\">\n                                    <a t-att-href=\"report_url\">\n                                        <span t-out=\"i.name\"/>\n                                    </a>\n                                    <div t-if=\"i.payment_state in ('paid', 'in_payment')\" class=\"small badge rounded-pill text-bg-success orders_label_text_align\">\n                                        <i class=\"fa fa-fw fa-check\"/> Pagado\n                                    </div>\n                                    <div t-elif=\"i.payment_state == 'reversed'\" class=\"small badge text-bg-success orders_label_text_align\">\n                                        <i class=\"fa fa-fw fa-check\"/> Revertido\n                                    </div>\n                                    <div t-elif=\"authorized_tx_ids\" class=\"small badge rounded-pill text-bg-success orders_label_text_align\">\n                                        <i class=\"fa fa-fw fa-check\"/> Autorizado\n                                    </div>\n                                    <div t-else=\"\" class=\"small badge rounded-pill text-bg-info orders_label_text_align\">\n                                        <i class=\"fa fa-fw fa-clock-o\"/> Esperando pago\n                                    </div>\n                                </div>\n                                <div class=\"small d-lg-inline-block\">Fecha: <span class=\"text-muted\" t-field=\"i.invoice_date\"/></div>\n                            </div>\n                        </div>\n                    </t>\n                </div>\n            </div>\n\n            <section id=\"details\" style=\"page-break-inside: auto;\">\n                <t t-if=\"product_documents\">\n                    <h4 id=\"details\">Documentos</h4>\n                    <div class=\"d-flex flex-grow-1 flex-wrap gap-1 mb32\">\n                        <t t-foreach=\"product_documents\" t-as=\"document_sudo\">\n                            <div class=\"bg-light p-2 rounded\">\n                                <div class=\"position-relative text-center\">\n                                    <t t-set=\"attachment_sudo\" t-value=\"document_sudo.ir_attachment_id\"/>\n                                    <t t-set=\"target\" t-value=\"attachment_sudo.type == 'url' and '_blank' or '_self'\"/>\n                                    <a t-att-href=\"sale_order.get_portal_url('/document/' + str(document_sudo.id))\" t-att-target=\"target\" class=\"d-flex flex-row\">\n                                        <div class=\"o_image\" t-att-title=\"attachment_sudo.name\" t-att-data-mimetype=\"attachment_sudo.mimetype\" t-attf-data-src=\"/web/image/#{attachment_sudo.id}/100x80?access_token=#{attachment_sudo.access_token}\"/>\n                                        <div class=\"o_portal_product_document align-self-center\" t-out=\"attachment_sudo.name\"/>\n                                    </a>\n                                </div>\n                            </div>\n                        </t>\n                    </div>\n                </t>\n\n                <t t-set=\"display_discount\" t-value=\"True in [line.discount &gt; 0 for line in sale_order.order_line]\"/>\n\n                <div class=\"table-responsive\">\n                    <table t-att-data-order-id=\"sale_order.id\" t-att-data-token=\"sale_order.access_token\" class=\"table table-sm\" id=\"sales_order_table\">\n                        <thead>\n                            <tr>\n                                <th class=\"text-start\" id=\"product_name_header\">Productos</th>\n                                <th class=\"text-end\" id=\"product_qty_header\">Cantidad</th>\n                                <th t-attf-class=\"text-end {{ 'd-none d-sm-table-cell' if report_type == 'html' else '' }}\">\n                                    Precio unitario\n                                </th>\n                                <th t-if=\"display_discount\" t-attf-class=\"text-end {{ 'd-none d-sm-table-cell' if report_type == 'html' else '' }}\">\n                                    <span>Desc.%</span>\n                                </th>\n                                <th t-attf-class=\"text-end {{ 'd-none d-md-table-cell' if report_type == 'html' else '' }}\" id=\"taxes_header\">\n                                    <span>Impuestos</span>\n                                </th>\n                                <th class=\"text-end\" id=\"subtotal_header\">\n                                    <span>Importe</span>\n                                </th>\n                            </tr>\n                        </thead>\n                        <tbody class=\"sale_tbody\">\n\n                            <t t-set=\"current_subtotal\" t-value=\"0\"/>\n                            <t t-set=\"lines_to_report\" t-value=\"sale_order._get_order_lines_to_report()\"/>\n\n                            <t t-foreach=\"lines_to_report\" t-as=\"line\">\n\n                                <t t-set=\"current_subtotal\" t-value=\"current_subtotal + line.price_subtotal\"/>\n\n                                <tr t-att-class=\"'fw-bold o_line_section' if (                                         line.display_type == 'line_section'                                         or line.product_type == 'combo'                                     )                                     else 'fst-italic o_line_note' if line.display_type == 'line_note'                                     else ''\">\n                                    <t name=\"product_line_row\" t-if=\"not line.display_type and line.product_type != 'combo'\">\n                                        <td id=\"product_name\">\n                                            <span t-field=\"line.name\"/>\n                                        </td>\n                                        <td class=\"text-end\" id=\"quote_qty_td\">\n                                            <div id=\"quote_qty\">\n                                                <span t-field=\"line.product_uom_qty\"/>\n                                                <span t-field=\"line.product_uom\"/>\n                                            </div>\n                                        </td>\n                                        <td t-attf-class=\"text-end {{ 'd-none d-sm-table-cell' if report_type == 'html' else '' }}\">\n                                            <div t-if=\"line.discount &gt;= 0\" t-field=\"line.price_unit\" t-att-style=\"line.discount and 'text-decoration: line-through' or None\" t-att-class=\"(line.discount and 'text-danger' or '') + ' text-end'\"/>\n                                            <div t-if=\"line.discount\">\n                                                <t t-out=\"(1-line.discount / 100.0) * line.price_unit\" t-options=\"{&quot;widget&quot;: &quot;float&quot;, &quot;decimal_precision&quot;: &quot;Product Price&quot;}\"/>\n                                            </div>\n                                        </td>\n                                        <td t-if=\"display_discount\" t-attf-class=\"text-end {{ 'd-none d-sm-table-cell' if report_type == 'html' else '' }}\">\n                                            <strong t-if=\"line.discount &gt; 0\" class=\"text-info\">\n                                                <t t-out=\"((line.discount % 1) and '%s' or '%d') % line.discount\"/>%\n                                            </strong>\n                                        </td>\n                                        <td t-attf-class=\"text-end {{ 'd-none d-md-table-cell' if report_type == 'html' else '' }}\" id=\"taxes\">\n                                            <span t-out=\"', '.join(map(lambda x: (x.name), line.tax_id))\"/>\n                                        </td>\n                                        <td t-if=\"not line.is_downpayment\" class=\"text-end\" id=\"subtotal\">\n                                        <span class=\"oe_order_line_price_subtotal\" t-field=\"line.price_subtotal\"/>\n                                        </td>\n                                    </t>\n                                    <t t-if=\"line.display_type == 'line_section' or line.product_type == 'combo'\">\n                                        <td colspan=\"99\">\n                                            <span t-field=\"line.name\"/>\n                                        </td>\n                                        <t t-set=\"current_section\" t-value=\"line\"/>\n                                        <t t-set=\"current_subtotal\" t-value=\"0\"/>\n                                    </t>\n                                    <t t-if=\"line.display_type == 'line_note'\">\n                                        <td colspan=\"99\">\n                                            <span t-field=\"line.name\"/>\n                                        </td>\n                                    </t>\n                                </tr>\n                                <tr t-if=\"current_section and (                                         line_last                                         or lines_to_report[line_index+1].display_type == 'line_section'                                         or lines_to_report[line_index+1].product_type == 'combo'                                         or (                                             line.combo_item_id                                             and not lines_to_report[line_index+1].combo_item_id                                         )                                     ) and not line.is_downpayment\" class=\"is-subtotal text-end\">\n                                    <t t-set=\"current_section\" t-value=\"None\"/>\n                                    <td colspan=\"99\">\n                                        <strong class=\"mr16\">Subtotal</strong>\n                                        <span t-out=\"current_subtotal\" t-options=\"{&quot;widget&quot;: &quot;monetary&quot;, &quot;display_currency&quot;: sale_order.currency_id}\"/>\n                                    </td>\n                                </tr>\n                            </t>\n                        </tbody>\n                    </table>\n                </div>\n\n                <div id=\"total\" name=\"total\" style=\"page-break-inside: avoid;\">\n                    <div class=\"col-xs-7 col-md-5 ms-auto\">\n                        <t t-call=\"sale.sale_order_portal_content_totals_table\"/>\n                    </div>\n                </div>\n            </section>\n\n            <section t-if=\"sale_order.signature\" id=\"signature\" name=\"Signature\">\n                <div class=\"row mt-4\" name=\"signature\">\n                    <div t-attf-class=\"#{'col-3' if report_type != 'html' else 'col-sm-7 col-md-4'} ms-auto text-center\">\n                        <h5>Firma</h5>\n                        <img t-att-src=\"image_data_uri(sale_order.signature)\" style=\"max-height: 6rem; max-width: 100%;\"/>\n                        <p t-field=\"sale_order.signed_by\"/>\n                    </div>\n                </div>\n            </section>\n\n            <section t-if=\"not is_html_empty(sale_order.note)\" id=\"terms\" class=\"mt-4\">\n                <h4 class=\"\">Términos y condiciones</h4>\n                <hr class=\"mt-0 mb-1\"/>\n                <em t-field=\"sale_order.note\"/>\n            </section>\n\n            <section t-if=\"sale_order.payment_term_id\" class=\"mt-4\">\n                <h4 class=\"\">Condiciones de pago</h4>\n                <hr class=\"mt-0 mb-1\"/>\n                <span t-field=\"sale_order.payment_term_id.note\"/>\n            </section>\n        </div>\n    </t>"}