{"en_US": "<data name=\"Sales Order Portal Template\" inherit_id=\"portal.portal_sidebar\" primary=\"True\">\n        <xpath expr=\"//div[hasclass('o_portal_sidebar')]\" position=\"inside\">\n            <t t-set=\"o_portal_fullwidth_alert\" groups=\"sales_team.group_sale_salesman\">\n                <!-- Uses backend_url provided in rendering values -->\n                <t t-call=\"portal.portal_back_in_edit_mode\"/>\n            </t>\n\n            <div class=\"row mt16 o_portal_sale_sidebar\">\n                <!-- Sidebar -->\n                <t t-call=\"portal.portal_record_sidebar\">\n                    <t t-set=\"classes\" t-value=\"'col-lg-auto d-print-none'\"/>\n\n                    <t t-set=\"title\">\n                        <h2 class=\"mb-0\"><b t-field=\"sale_order.amount_total\" data-id=\"total_amount\"/> </h2>\n                    </t>\n                    <t t-set=\"entries\">\n                        <ul class=\"list-group list-group-flush flex-wrap flex-row flex-lg-column\">\n                            <li class=\"list-group-item d-grid align-content-start\">\n                                <a t-if=\"sale_order._has_to_be_signed(True)\" role=\"button\" class=\"btn btn-primary mb8\" data-bs-toggle=\"modal\" data-bs-target=\"#modalaccept\" href=\"#\">\n                                    <i class=\"fa fa-check\"/><t t-if=\"sale_order._has_to_be_paid(True)\"> Sign &amp; Pay</t><t t-else=\"\"> Accept &amp; Sign</t>\n                                </a>\n                                <a t-elif=\"sale_order._has_to_be_paid(True)\" role=\"button\" id=\"o_sale_portal_paynow\" data-bs-toggle=\"modal\" data-bs-target=\"#modalaccept\" href=\"#\" t-att-class=\"'mb8 %s' % ('btn btn-light' if sale_order.transaction_ids else 'btn btn-primary')\">\n                                    <i class=\"fa fa-check\"/> <t t-if=\"not sale_order.signature\">Accept &amp; Pay</t><t t-else=\"\">Pay Now</t>\n                                </a>\n                                <div class=\"o_download_pdf btn-toolbar flex-sm-nowrap\">\n                                    <div class=\"btn-group flex-grow-1 me-1 mb-1\">\n                                        <a class=\"btn btn-secondary o_download_btn\" t-att-href=\"sale_order.get_portal_url(report_type='pdf', download=True)\" title=\"Download\"><i class=\"fa fa-download\"/> Download</a>\n                                    </div>\n                                    <div class=\"btn-group flex-grow-1 mb-1\">\n                                        <a class=\"btn btn-secondary o_print_btn o_portal_invoice_print\" t-att-href=\"sale_order.get_portal_url(report_type='pdf')\" id=\"print_invoice_report\" title=\"Print\" target=\"_blank\"><i class=\"fa fa-print\"/> Print</a>\n                                    </div>\n                                </div>\n                            </li>\n\n                            <li class=\"navspy list-group-item ps-0 flex-grow-1\" t-ignore=\"true\" role=\"complementary\">\n                                <ul class=\"nav flex-column bs-sidenav\"/>\n                            </li>\n\n                            <t t-if=\"not sale_order.is_expired and sale_order.state in ['draft', 'sent']\">\n                                <li t-if=\"sale_order.validity_date\" class=\"list-group-item\">\n                                    <small><b class=\"text-muted\">This offer expires on</b></small>\n                                    <div t-field=\"sale_order.validity_date\"/>\n                                </li>\n                                <li t-if=\"sale_order.amount_undiscounted - sale_order.amount_untaxed &gt; 0.01\" class=\"list-group-item flex-grow-1\">\n                                    <small><b class=\"text-muted\">Your advantage</b></small>\n                                    <small>\n                                        <b t-field=\"sale_order.amount_undiscounted\" t-options=\"{&quot;widget&quot;: &quot;monetary&quot;, &quot;display_currency&quot;: sale_order.pricelist_id.currency_id}\" style=\"text-decoration: line-through\" class=\"d-block mt-1\" data-id=\"amount_undiscounted\"/>\n                                    </small>\n                                    <t t-if=\"sale_order.amount_untaxed == sale_order.amount_total\">\n                                        <h4 t-field=\"sale_order.amount_total\" class=\"text-success\" data-id=\"total_amount\"/>\n                                    </t>\n                                    <t t-else=\"\">\n                                        <h4 t-field=\"sale_order.amount_untaxed\" class=\"text-success mb-0\" data-id=\"total_untaxed\"/>\n                                        <small>(<span t-field=\"sale_order.amount_total\" data-id=\"total_amount\"/> Incl. tax)</small>\n                                    </t>\n                                </li>\n                            </t>\n\n                            <li t-if=\"sale_order.user_id\" class=\"list-group-item flex-grow-1\">\n                                <div class=\"small mb-1\">\n                                    <strong class=\"text-muted\">Salesperson</strong>\n                                </div>\n                                <div class=\"row flex-nowrap\">\n                                    <div class=\"col flex-grow-0 pe-2\">\n                                        <img class=\"rounded-circle mr4 float-start o_portal_contact_img\" t-att-src=\"image_data_uri(sale_order.user_id.avatar_128)\" alt=\"Contact\"/>\n                                    </div>\n                                    <div class=\"col ps-0\" style=\"min-width: 150px\">\n                                        <span t-field=\"sale_order.user_id\" t-options=\"{&quot;widget&quot;: &quot;contact&quot;, &quot;fields&quot;: [&quot;name&quot;, &quot;phone&quot;], &quot;no_marker&quot;: True}\"/>\n                                        <a href=\"#discussion\" class=\"small\">\n                                            <i class=\"fa fa-comment\"/> Send message\n                                        </a>\n                                    </div>\n                                </div>\n                            </li>\n                        </ul>\n                    </t>\n                </t>\n\n                <!-- Page content -->\n                <div id=\"quote_content\" class=\"col-12 col-lg justify-content-end\">\n\n                    <!-- modal relative to the actions sign and pay -->\n                    <div role=\"dialog\" class=\"modal fade\" id=\"modalaccept\">\n                        <div class=\"modal-dialog\" t-if=\"sale_order._has_to_be_signed(True)\">\n                            <form id=\"accept\" method=\"POST\" t-att-data-order-id=\"sale_order.id\" t-att-data-token=\"sale_order.access_token\" class=\"js_accept_json modal-content js_website_submit_form\">\n                                <input type=\"hidden\" name=\"csrf_token\" t-att-value=\"request.csrf_token()\"/>\n                                <header class=\"modal-header\">\n                                    <h4 class=\"modal-title\">Validate Order</h4>\n                                    <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Close\"/>\n                                </header>\n                                <main class=\"modal-body\" id=\"sign-dialog\">\n                                    <p>\n                                        <span>By signing this proposal, I agree to the following terms:</span>\n                                        <ul>\n                                            <li>\n                                                <span>Accepted on the behalf of:</span> <b t-field=\"sale_order.partner_id.commercial_partner_id\"/>\n                                            </li>\n                                            <li>\n                                                <span>For an amount of:</span> <b data-id=\"total_amount\" t-field=\"sale_order.amount_total\"/>\n                                            </li>\n                                            <li t-if=\"sale_order.payment_term_id\">\n                                                <span>With payment terms:</span> <b t-field=\"sale_order.payment_term_id.note\"/>\n                                            </li>\n                                        </ul>\n                                    </p>\n                                    <t t-call=\"portal.signature_form\">\n                                        <t t-set=\"call_url\" t-value=\"sale_order.get_portal_url(suffix='/accept')\"/>\n                                        <t t-set=\"default_name\" t-value=\"sale_order.partner_id.name\"/>\n                                    </t>\n                                </main>\n                            </form>\n                        </div>\n\n                        <div class=\"modal-dialog\" t-if=\"not sale_order._has_to_be_signed(True) and sale_order._has_to_be_paid(True)\">\n                            <div class=\"modal-content\">\n                                <header class=\"modal-header\">\n                                    <h4 class=\"modal-title\">Validate Order</h4>\n                                    <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Close\"/>\n                                </header>\n                                <main class=\"modal-body\" id=\"sign-dialog\">\n                                    <p>\n                                        <span>By paying this proposal, I agree to the following terms:</span>\n                                        <ul>\n                                            <li>\n                                                <span>Accepted on the behalf of:</span> <b t-field=\"sale_order.partner_id.commercial_partner_id\"/>\n                                            </li>\n                                            <li>\n                                                <span>For an amount of:</span> <b data-id=\"total_amount\" t-field=\"sale_order.amount_total\"/>\n                                            </li>\n                                            <li t-if=\"sale_order.payment_term_id\">\n                                                <span>With payment terms:</span> <b t-field=\"sale_order.payment_term_id.note\"/>\n                                            </li>\n                                        </ul>\n                                    </p>\n                                    <div t-if=\"providers or tokens\" id=\"payment_method\" class=\"text-start\">\n                                        <h3 class=\"mb24\">Pay with</h3>\n                                        <t t-call=\"payment.checkout\"/>\n                                    </div>\n                                    <div t-else=\"\" class=\"alert alert-warning\">\n                                        <strong>No suitable payment option could be found.</strong><br/>\n                                        If you believe that it is an error, please contact the website administrator.\n                                    </div>\n                                </main>\n                            </div>\n                        </div>\n                    </div>\n\n                    <!-- modal relative to the action reject -->\n                    <div role=\"dialog\" class=\"modal fade\" id=\"modaldecline\">\n                        <div class=\"modal-dialog\">\n                            <form id=\"decline\" method=\"POST\" t-attf-action=\"/my/orders/#{sale_order.id}/decline?access_token=#{sale_order.access_token}\" class=\"modal-content\">\n                                <input type=\"hidden\" name=\"csrf_token\" t-att-value=\"request.csrf_token()\"/>\n                                <header class=\"modal-header\">\n                                    <h4 class=\"modal-title\">Reject This Quotation</h4>\n                                    <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Close\"/>\n                                </header>\n                                <main class=\"modal-body\">\n                                    <p>\n                                        Tell us why you are refusing this quotation, this will help us improve our services.\n                                    </p>\n                                    <textarea rows=\"4\" name=\"decline_message\" required=\"\" placeholder=\"Your feedback...\" class=\"form-control\"/>\n                                </main>\n                                <footer class=\"modal-footer\">\n                                    <button type=\"submit\" t-att-id=\"sale_order.id\" class=\"btn btn-danger\">\n                                        <i class=\"fa fa-times\"/> Reject\n                                    </button>\n                                    <button type=\"button\" class=\"btn btn-primary\" data-bs-dismiss=\"modal\">\n                                        Cancel\n                                    </button>\n                                </footer>\n                            </form>\n                        </div>\n                    </div>\n\n                    <!-- status messages -->\n                    <div t-if=\"message == 'sign_ok'\" class=\"alert alert-success alert-dismissible d-print-none\" role=\"status\">\n                        <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"alert\" aria-label=\"Close\"/>\n                        <strong>Thank You!</strong><br/>\n                        <t t-if=\"message == 'sign_ok' and sale_order.state in ['sale', 'done']\">\n                            Your order has been confirmed.\n                        </t>\n                        <t t-elif=\"message == 'sign_ok' and sale_order._has_to_be_paid()\">\n                            Your order has been signed but still needs to be paid to be confirmed.\n                        </t>\n                        <t t-else=\"\">Your order has been signed.</t>\n                    </div>\n\n                    <div t-if=\"message == 'cant_reject'\" class=\"alert alert-danger alert-dismissible d-print-none\" role=\"alert\">\n                        <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"alert\" aria-label=\"Close\"/>\n                        Your order is not in a state to be rejected.\n                    </div>\n\n                    <t t-if=\"sale_order.transaction_ids\">\n                        <t t-call=\"payment.transaction_status\">\n                            <t t-set=\"tx\" t-value=\"sale_order.get_portal_last_transaction()\"/>\n                        </t>\n                    </t>\n\n                    <div t-if=\"sale_order.state == 'cancel'\" class=\"alert alert-danger alert-dismissible d-print-none\" role=\"alert\">\n                        <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"alert\" aria-label=\"close\"/>\n                        <strong>This quotation has been canceled.</strong> <a role=\"button\" href=\"#discussion\"><i class=\"fa fa-comment\"/> Contact us to get a new quotation.</a>\n                    </div>\n\n                    <div t-if=\"sale_order.is_expired\" class=\"alert alert-warning alert-dismissible d-print-none\" role=\"alert\">\n                        <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"alert\" aria-label=\"close\"/>\n                        <strong>This offer expired!</strong> <a role=\"button\" href=\"#discussion\"><i class=\"fa fa-comment\"/> Contact us to get a new quotation.</a>\n                    </div>\n\n                    <!-- main content -->\n                    <div t-attf-class=\"card #{'pb-5' if report_type == 'html' else ''}\" id=\"portal_sale_content\">\n                        <div t-call=\"sale.sale_order_portal_content\"/>\n                    </div>\n\n                    <!-- bottom actions -->\n                    <div t-if=\"sale_order._has_to_be_signed(True) or sale_order._has_to_be_paid(True)\" class=\"row justify-content-center text-center d-print-none pt-1 pb-4\">\n\n                        <t t-if=\"sale_order._has_to_be_signed(True)\">\n                            <div class=\"col-sm-auto mt8\">\n                                <a role=\"button\" class=\"btn btn-primary\" data-bs-toggle=\"modal\" data-bs-target=\"#modalaccept\" href=\"#\"><i class=\"fa fa-check\"/><t t-if=\"sale_order._has_to_be_paid(True)\"> Sign &amp; Pay</t><t t-else=\"\"> Accept &amp; Sign</t></a>\n                            </div>\n                            <div class=\"col-sm-auto mt8\">\n                                <a role=\"button\" class=\"btn btn-secondary\" href=\"#discussion\"><i class=\"fa fa-comment\"/> Feedback</a>\n                            </div>\n                            <div class=\"col-sm-auto mt8\">\n                                <a role=\"button\" class=\"btn btn-danger\" data-bs-toggle=\"modal\" data-bs-target=\"#modaldecline\" href=\"#\"> <i class=\"fa fa-times\"/> Reject</a>\n                            </div>\n                        </t>\n                        <div t-elif=\"sale_order._has_to_be_paid(True)\" class=\"col-sm-auto mt8\">\n                            <a role=\"button\" data-bs-toggle=\"modal\" data-bs-target=\"#modalaccept\" href=\"#\" t-att-class=\"'%s' % ('btn btn-light' if sale_order.transaction_ids else 'btn btn-primary')\">\n                                <i class=\"fa fa-check\"/> <t t-if=\"not sale_order.signature\">Accept &amp; Pay</t><t t-else=\"\">Pay Now</t>\n                            </a>\n                        </div>\n                    </div>\n\n                    <!-- chatter -->\n                    <div id=\"sale_order_communication\" class=\"mt-4\">\n                        <h2>History</h2>\n                        <t t-call=\"portal.message_thread\"/>\n                    </div>\n                </div><!-- // #quote_content -->\n            </div>\n        </xpath>\n    <xpath expr=\".\" position=\"attributes\"><attribute name=\"t-name\">sale.sale_order_portal_template</attribute></xpath></data>", "vi_VN": "<data name=\"Sales Order Portal Template\" inherit_id=\"portal.portal_sidebar\" primary=\"True\">\n        <xpath expr=\"//div[hasclass('o_portal_sidebar')]\" position=\"inside\">\n            <t t-set=\"o_portal_fullwidth_alert\" groups=\"sales_team.group_sale_salesman\">\n                <!-- Uses backend_url provided in rendering values -->\n                <t t-call=\"portal.portal_back_in_edit_mode\"/>\n            </t>\n\n            <div class=\"row mt16 o_portal_sale_sidebar\">\n                <!-- Sidebar -->\n                <t t-call=\"portal.portal_record_sidebar\">\n                    <t t-set=\"classes\" t-value=\"'col-lg-auto d-print-none'\"/>\n\n                    <t t-set=\"title\">\n                        <h2 class=\"mb-0\"><b t-field=\"sale_order.amount_total\" data-id=\"total_amount\"/> </h2>\n                    </t>\n                    <t t-set=\"entries\">\n                        <ul class=\"list-group list-group-flush flex-wrap flex-row flex-lg-column\">\n                            <li class=\"list-group-item d-grid align-content-start\">\n                                <a t-if=\"sale_order._has_to_be_signed(True)\" role=\"button\" class=\"btn btn-primary mb8\" data-bs-toggle=\"modal\" data-bs-target=\"#modalaccept\" href=\"#\">\n                                    <i class=\"fa fa-check\"/><t t-if=\"sale_order._has_to_be_paid(True)\"> Ký tên &amp; Thanh toán</t><t t-else=\"\"> Chấp nhận &amp; ký</t>\n                                </a>\n                                <a t-elif=\"sale_order._has_to_be_paid(True)\" role=\"button\" id=\"o_sale_portal_paynow\" data-bs-toggle=\"modal\" data-bs-target=\"#modalaccept\" href=\"#\" t-att-class=\"'mb8 %s' % ('btn btn-light' if sale_order.transaction_ids else 'btn btn-primary')\">\n                                    <i class=\"fa fa-check\"/> <t t-if=\"not sale_order.signature\">Chấp nhận &amp; thanh toán</t><t t-else=\"\">Thanh toán ngay</t>\n                                </a>\n                                <div class=\"o_download_pdf btn-toolbar flex-sm-nowrap\">\n                                    <div class=\"btn-group flex-grow-1 me-1 mb-1\">\n                                        <a class=\"btn btn-secondary o_download_btn\" t-att-href=\"sale_order.get_portal_url(report_type='pdf', download=True)\" title=\"Tải xuống\"><i class=\"fa fa-download\"/> Tải xuống</a>\n                                    </div>\n                                    <div class=\"btn-group flex-grow-1 mb-1\">\n                                        <a class=\"btn btn-secondary o_print_btn o_portal_invoice_print\" t-att-href=\"sale_order.get_portal_url(report_type='pdf')\" id=\"print_invoice_report\" title=\"In\" target=\"_blank\"><i class=\"fa fa-print\"/> In</a>\n                                    </div>\n                                </div>\n                            </li>\n\n                            <li class=\"navspy list-group-item ps-0 flex-grow-1\" t-ignore=\"true\" role=\"complementary\">\n                                <ul class=\"nav flex-column bs-sidenav\"/>\n                            </li>\n\n                            <t t-if=\"not sale_order.is_expired and sale_order.state in ['draft', 'sent']\">\n                                <li t-if=\"sale_order.validity_date\" class=\"list-group-item\">\n                                    <small><b class=\"text-muted\">Ưu đãi này hết hạn vào</b></small>\n                                    <div t-field=\"sale_order.validity_date\"/>\n                                </li>\n                                <li t-if=\"sale_order.amount_undiscounted - sale_order.amount_untaxed &gt; 0.01\" class=\"list-group-item flex-grow-1\">\n                                    <small><b class=\"text-muted\">Lợi thế của bạn</b></small>\n                                    <small>\n                                        <b t-field=\"sale_order.amount_undiscounted\" t-options=\"{&quot;widget&quot;: &quot;monetary&quot;, &quot;display_currency&quot;: sale_order.pricelist_id.currency_id}\" style=\"text-decoration: line-through\" class=\"d-block mt-1\" data-id=\"amount_undiscounted\"/>\n                                    </small>\n                                    <t t-if=\"sale_order.amount_untaxed == sale_order.amount_total\">\n                                        <h4 t-field=\"sale_order.amount_total\" class=\"text-success\" data-id=\"total_amount\"/>\n                                    </t>\n                                    <t t-else=\"\">\n                                        <h4 t-field=\"sale_order.amount_untaxed\" class=\"text-success mb-0\" data-id=\"total_untaxed\"/>\n                                        <small>(<span t-field=\"sale_order.amount_total\" data-id=\"total_amount\"/> Bao gồm thuế)</small>\n                                    </t>\n                                </li>\n                            </t>\n\n                            <li t-if=\"sale_order.user_id\" class=\"list-group-item flex-grow-1\">\n                                <div class=\"small mb-1\">\n                                    <strong class=\"text-muted\">Nhân viên bán hàng</strong>\n                                </div>\n                                <div class=\"row flex-nowrap\">\n                                    <div class=\"col flex-grow-0 pe-2\">\n                                        <img class=\"rounded-circle mr4 float-start o_portal_contact_img\" t-att-src=\"image_data_uri(sale_order.user_id.avatar_128)\" alt=\"Liên hệ\"/>\n                                    </div>\n                                    <div class=\"col ps-0\" style=\"min-width: 150px\">\n                                        <span t-field=\"sale_order.user_id\" t-options=\"{&quot;widget&quot;: &quot;contact&quot;, &quot;fields&quot;: [&quot;name&quot;, &quot;phone&quot;], &quot;no_marker&quot;: True}\"/>\n                                        <a href=\"#discussion\" class=\"small\">\n                                            <i class=\"fa fa-comment\"/> Gửi tin nhắn\n                                        </a>\n                                    </div>\n                                </div>\n                            </li>\n                        </ul>\n                    </t>\n                </t>\n\n                <!-- Page content -->\n                <div id=\"quote_content\" class=\"col-12 col-lg justify-content-end\">\n\n                    <!-- modal relative to the actions sign and pay -->\n                    <div role=\"dialog\" class=\"modal fade\" id=\"modalaccept\">\n                        <div class=\"modal-dialog\" t-if=\"sale_order._has_to_be_signed(True)\">\n                            <form id=\"accept\" method=\"POST\" t-att-data-order-id=\"sale_order.id\" t-att-data-token=\"sale_order.access_token\" class=\"js_accept_json modal-content js_website_submit_form\">\n                                <input type=\"hidden\" name=\"csrf_token\" t-att-value=\"request.csrf_token()\"/>\n                                <header class=\"modal-header\">\n                                    <h4 class=\"modal-title\">Xác nhận đơn hàng</h4>\n                                    <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Đóng\"/>\n                                </header>\n                                <main class=\"modal-body\" id=\"sign-dialog\">\n                                    <p>\n                                        <span>Bằng việc ký kết, tôi đồng ý với các điều khoản sau:</span>\n                                        <ul>\n                                            <li>\n                                                <span>Đã chấp nhận thay cho:</span> <b t-field=\"sale_order.partner_id.commercial_partner_id\"/>\n                                            </li>\n                                            <li>\n                                                <span>Với số tiền:</span> <b data-id=\"total_amount\" t-field=\"sale_order.amount_total\"/>\n                                            </li>\n                                            <li t-if=\"sale_order.payment_term_id\">\n                                                <span>Với điều khoản thanh toán:</span> <b t-field=\"sale_order.payment_term_id.note\"/>\n                                            </li>\n                                        </ul>\n                                    </p>\n                                    <t t-call=\"portal.signature_form\">\n                                        <t t-set=\"call_url\" t-value=\"sale_order.get_portal_url(suffix='/accept')\"/>\n                                        <t t-set=\"default_name\" t-value=\"sale_order.partner_id.name\"/>\n                                    </t>\n                                </main>\n                            </form>\n                        </div>\n\n                        <div class=\"modal-dialog\" t-if=\"not sale_order._has_to_be_signed(True) and sale_order._has_to_be_paid(True)\">\n                            <div class=\"modal-content\">\n                                <header class=\"modal-header\">\n                                    <h4 class=\"modal-title\">Xác nhận đơn hàng</h4>\n                                    <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Đóng\"/>\n                                </header>\n                                <main class=\"modal-body\" id=\"sign-dialog\">\n                                    <p>\n                                        <span>Bằng cách thanh toán, tôi đồng ý với các điều khoản sau:</span>\n                                        <ul>\n                                            <li>\n                                                <span>Đã chấp nhận thay cho:</span> <b t-field=\"sale_order.partner_id.commercial_partner_id\"/>\n                                            </li>\n                                            <li>\n                                                <span>Với số tiền:</span> <b data-id=\"total_amount\" t-field=\"sale_order.amount_total\"/>\n                                            </li>\n                                            <li t-if=\"sale_order.payment_term_id\">\n                                                <span>Với điều khoản thanh toán:</span> <b t-field=\"sale_order.payment_term_id.note\"/>\n                                            </li>\n                                        </ul>\n                                    </p>\n                                    <div t-if=\"providers or tokens\" id=\"payment_method\" class=\"text-start\">\n                                        <h3 class=\"mb24\">Thanh toán bằng</h3>\n                                        <t t-call=\"payment.checkout\"/>\n                                    </div>\n                                    <div t-else=\"\" class=\"alert alert-warning\">\n                                        <strong>Không tìm thấy tùy chọn thanh toán phù hợp.</strong><br/>\n                                        Nếu bạn tin đây là lỗi, vui lòng liên hệ quản trị viên trang web. \n                                    </div>\n                                </main>\n                            </div>\n                        </div>\n                    </div>\n\n                    <!-- modal relative to the action reject -->\n                    <div role=\"dialog\" class=\"modal fade\" id=\"modaldecline\">\n                        <div class=\"modal-dialog\">\n                            <form id=\"decline\" method=\"POST\" t-attf-action=\"/my/orders/#{sale_order.id}/decline?access_token=#{sale_order.access_token}\" class=\"modal-content\">\n                                <input type=\"hidden\" name=\"csrf_token\" t-att-value=\"request.csrf_token()\"/>\n                                <header class=\"modal-header\">\n                                    <h4 class=\"modal-title\">Từ chối báo giá này</h4>\n                                    <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Đóng\"/>\n                                </header>\n                                <main class=\"modal-body\">\n                                    <p>\n                                        Vui lòng cho chúng tôi biết lý do bạn từ chối báo giá này. Điều này sẽ giúp chúng tôi cải thiện dịch vụ của mình. \n                                    </p>\n                                    <textarea rows=\"4\" name=\"decline_message\" required=\"\" placeholder=\"Phản hồi của bạn...\" class=\"form-control\"/>\n                                </main>\n                                <footer class=\"modal-footer\">\n                                    <button type=\"submit\" t-att-id=\"sale_order.id\" class=\"btn btn-danger\">\n                                        <i class=\"fa fa-times\"/> Từ chối\n                                    </button>\n                                    <button type=\"button\" class=\"btn btn-primary\" data-bs-dismiss=\"modal\">\n                                        Hủy\n                                    </button>\n                                </footer>\n                            </form>\n                        </div>\n                    </div>\n\n                    <!-- status messages -->\n                    <div t-if=\"message == 'sign_ok'\" class=\"alert alert-success alert-dismissible d-print-none\" role=\"status\">\n                        <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"alert\" aria-label=\"Đóng\"/>\n                        <strong>Xin cảm ơn!</strong><br/>\n                        <t t-if=\"message == 'sign_ok' and sale_order.state in ['sale', 'done']\">\n                            Đơn hàng của bạn đã được xác nhận.\n                        </t>\n                        <t t-elif=\"message == 'sign_ok' and sale_order._has_to_be_paid()\">\n                            Đơn hàng của bạn đã được ký nhưng bạn cần thanh toán để đơn hàng được xác nhận.\n                        </t>\n                        <t t-else=\"\">Đơn hàng của bạn đã được ký.</t>\n                    </div>\n\n                    <div t-if=\"message == 'cant_reject'\" class=\"alert alert-danger alert-dismissible d-print-none\" role=\"alert\">\n                        <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"alert\" aria-label=\"Đóng\"/>\n                        Đơn hàng không ở trạng thái để bị từ chối.\n                    </div>\n\n                    <t t-if=\"sale_order.transaction_ids\">\n                        <t t-call=\"payment.transaction_status\">\n                            <t t-set=\"tx\" t-value=\"sale_order.get_portal_last_transaction()\"/>\n                        </t>\n                    </t>\n\n                    <div t-if=\"sale_order.state == 'cancel'\" class=\"alert alert-danger alert-dismissible d-print-none\" role=\"alert\">\n                        <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"alert\" aria-label=\"đóng\"/>\n                        <strong>Báo giá này đã bị huỷ.</strong> <a role=\"button\" href=\"#discussion\"><i class=\"fa fa-comment\"/> Liên hệ với chúng tôi để nhận báo giá mới.</a>\n                    </div>\n\n                    <div t-if=\"sale_order.is_expired\" class=\"alert alert-warning alert-dismissible d-print-none\" role=\"alert\">\n                        <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"alert\" aria-label=\"đóng\"/>\n                        <strong>Báo giá này đã hết hạn! </strong> <a role=\"button\" href=\"#discussion\"><i class=\"fa fa-comment\"/> Liên hệ với chúng tôi để nhận báo giá mới.</a>\n                    </div>\n\n                    <!-- main content -->\n                    <div t-attf-class=\"card #{'pb-5' if report_type == 'html' else ''}\" id=\"portal_sale_content\">\n                        <div t-call=\"sale.sale_order_portal_content\"/>\n                    </div>\n\n                    <!-- bottom actions -->\n                    <div t-if=\"sale_order._has_to_be_signed(True) or sale_order._has_to_be_paid(True)\" class=\"row justify-content-center text-center d-print-none pt-1 pb-4\">\n\n                        <t t-if=\"sale_order._has_to_be_signed(True)\">\n                            <div class=\"col-sm-auto mt8\">\n                                <a role=\"button\" class=\"btn btn-primary\" data-bs-toggle=\"modal\" data-bs-target=\"#modalaccept\" href=\"#\"><i class=\"fa fa-check\"/><t t-if=\"sale_order._has_to_be_paid(True)\"> Ký tên &amp; Thanh toán</t><t t-else=\"\"> Chấp nhận &amp; ký</t></a>\n                            </div>\n                            <div class=\"col-sm-auto mt8\">\n                                <a role=\"button\" class=\"btn btn-secondary\" href=\"#discussion\"><i class=\"fa fa-comment\"/> Phản hồi</a>\n                            </div>\n                            <div class=\"col-sm-auto mt8\">\n                                <a role=\"button\" class=\"btn btn-danger\" data-bs-toggle=\"modal\" data-bs-target=\"#modaldecline\" href=\"#\"> <i class=\"fa fa-times\"/> Từ chối</a>\n                            </div>\n                        </t>\n                        <div t-elif=\"sale_order._has_to_be_paid(True)\" class=\"col-sm-auto mt8\">\n                            <a role=\"button\" data-bs-toggle=\"modal\" data-bs-target=\"#modalaccept\" href=\"#\" t-att-class=\"'%s' % ('btn btn-light' if sale_order.transaction_ids else 'btn btn-primary')\">\n                                <i class=\"fa fa-check\"/> <t t-if=\"not sale_order.signature\">Chấp nhận &amp; thanh toán</t><t t-else=\"\">Thanh toán ngay</t>\n                            </a>\n                        </div>\n                    </div>\n\n                    <!-- chatter -->\n                    <div id=\"sale_order_communication\" class=\"mt-4\">\n                        <h2>Lịch sử</h2>\n                        <t t-call=\"portal.message_thread\"/>\n                    </div>\n                </div><!-- // #quote_content -->\n            </div>\n        </xpath>\n    <xpath expr=\".\" position=\"attributes\"><attribute name=\"t-name\">sale.sale_order_portal_template</attribute></xpath></data>"}