{"en_US": "<data name=\"Sales Order\" 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 o_portal_sale_sidebar\" t-att-data-order-amount-total=\"sale_order.amount_total\">\n                <!-- Sidebar -->\n                <t t-call=\"portal.portal_record_sidebar\" id=\"sale_order_portal_sidebar\">\n                    <t t-set=\"classes\" t-value=\"'col-lg-4 col-xxl-3 d-print-none'\"/>\n                    <t t-set=\"title\">\n                        <t t-if=\"sale_order.state in 'draft,sent' and sale_order.prepayment_percent != 1.0\">\n                            <h4>Down payment</h4>\n                            <h2>\n                                <t t-out=\"sale_order._get_prepayment_required_amount()\" t-options=\"{                                         'widget': 'monetary',                                         'display_currency': sale_order.currency_id,                                     }\"/>\n                                (<t t-out=\"sale_order.prepayment_percent * 100\"/>%)\n                            </h2>\n                        </t>\n                        <h2 t-else=\"\" t-field=\"sale_order.amount_total\" class=\"mb-0 text-break\"/>\n                    </t>\n                    <t t-set=\"entries\">\n                        <div t-if=\"0 &lt; sale_order.amount_paid &lt; sale_order.amount_total                                   and sale_order.state != 'cancel'\" class=\"alert alert-success mt-3\" role=\"alert\">\n                            Amount paid:\n                            <span t-field=\"sale_order.amount_paid\" t-options=\"{                                     'widget': 'monetary',                                     'display_currency': sale_order.currency_id,                                 }\"/>\n                        </div>\n\n                        <div class=\"d-flex flex-column gap-4 mt-3\">\n                            <div class=\"d-flex flex-column gap-2\" id=\"sale_order_sidebar_button\">\n                                <a t-if=\"sale_order._has_to_be_signed() and not payment_amount\" role=\"button\" class=\"btn btn-primary\" data-bs-toggle=\"modal\" data-bs-target=\"#modalaccept\" href=\"#\"> <!-- If paying by link, signing is skipped. -->\n                                    <i class=\"fa fa-check\"/>\n                                    <t t-if=\"sale_order._has_to_be_paid()\"> Sign &amp; Pay</t>\n                                    <t t-else=\"\"> Accept &amp; Sign</t>\n                                </a>\n                                <a t-elif=\"sale_order._has_to_be_paid()                                             or (                                                 payment_amount                                                 and sale_order.amount_paid &lt; sale_order.amount_total                                                 and sale_order.state != 'cancel'                                             )\" id=\"o_sale_portal_paynow\" role=\"button\" data-bs-toggle=\"modal\" data-bs-target=\"#modalaccept\" href=\"#\" t-att-class=\"'btn btn-primary' if not sale_order.transaction_ids else 'btn btn-light'\">\n                                    <i class=\"fa fa-check\"/>\n                                    <t t-if=\"not sale_order.signature                                              and sale_order._has_to_be_paid()                                              and not payment_amount\"> Accept &amp; Pay</t>\n                                    <t t-else=\"\"> Pay Now</t>\n                                </a>\n                                <div class=\"o_download_pdf d-flex gap-2 flex-lg-column flex-xl-row flex-wrap\">\n                                    <a class=\"btn btn-light o_print_btn o_portal_invoice_print flex-grow-1\" t-att-href=\"sale_order.get_portal_url(report_type='pdf')\" id=\"print_invoice_report\" title=\"View Details\" role=\"button\" target=\"_blank\"><i class=\"fa fa-print me-1\"/>View Details</a>\n                                </div>\n                            </div>\n\n                            <div class=\"navspy flex-grow-1 ps-0\" t-ignore=\"true\" role=\"complementary\">\n                                <ul class=\"nav flex-column bs-sidenav\"/>\n                            </div>\n\n                            <t t-if=\"not sale_order.is_expired and sale_order.state in ['draft', 'sent']\">\n                                <div t-if=\"sale_order.amount_undiscounted - sale_order.amount_untaxed &gt; 0.01\" class=\"list-group-item flex-grow-1\" name=\"sale_order_advantage\">\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.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                                </div>\n                            </t>\n\n                            <div t-if=\"sale_order.user_id\">\n                                <h6><small class=\"text-muted\">Your contact</small></h6>\n                                <t t-call=\"portal.portal_my_contact\">\n                                    <t t-set=\"_contactAvatar\" t-value=\"image_data_uri(sale_order.user_id.avatar_128)\"/>\n                                    <t t-set=\"_contactName\" t-value=\"sale_order.user_id.name\"/>\n                                    <t t-set=\"_contactLink\" t-value=\"True\"/>\n                                </t>\n                            </div>\n\n                            <div t-if=\"sale_order._get_edi_builders()\">\n                                <button id=\"portal_connect_software_modal_btn\" type=\"button\" class=\"btn btn-primary\" data-bs-toggle=\"modal\" data-bs-target=\"#sale_portal_connect_software_modal\">\n                                        Connect with your software!\n                                </button>\n                            </div>\n                        </div>\n                    </t>\n                </t>\n\n                <div class=\"modal fade\" id=\"sale_portal_connect_software_modal\" tabindex=\"-1\" role=\"dialog\" aria-hidden=\"true\">\n                    <div class=\"modal-dialog modal-lg\" role=\"document\">\n                        <div class=\"modal-content\">\n                            <div class=\"modal-body\">\n                                <div>\n                                    <h5>Want to import this document in Odoo?</h5>\n                                    <p>Drag and drop the request for quotation PDF file into your list of quotations in Odoo. Enjoy the automation!</p>\n                                </div>\n                                <div>\n                                    <h5>Not using Odoo?</h5>\n                                    <div class=\"input-group mb-3 w-50\">\n                                        <t t-set=\"base_address\" t-value=\"sale_order.env['ir.config_parameter'].sudo().get_param('web.base.url')\"/>\n                                        <t t-set=\"doc_url\" t-value=\"base_address + '/my/orders/' + str(sale_order.id) + '/download_edi?' + str(keep_query())\"/>\n                                        <input type=\"text\" class=\"form-control\" aria-describedby=\"copy-button\" readonly=\"readonly\" t-att-value=\"doc_url\"/>\n                                        <button class=\"btn btn-outline-secondary\" type=\"button\" id=\"copy-button\" t-attf-onclick=\"navigator.clipboard.writeText('#{doc_url}')\">Copy</button>\n                                    </div>\n                                    <p>Use the above REST URL to get structured data of the purchase order in UBL format.\n                                        <a href=\"https://www.odoo.com/documentation/\">Read the documentation </a>to learn all the ways to connect your software with <a href=\"https://www.odoo.com\">Odoo</a>.\n                                    </p>\n                                </div>\n                                <div>\n                                    <h5>You don't use a good CRM software?</h5>\n                                    <p><a href=\"https://www.odoo.com/app/sales\">Start on Odoo</a>, it's 100% free! You'll save time creating beautiful quotations and track sales.</p>\n                                </div>\n                            </div>\n                            <div class=\"modal-footer justify-content-between\">\n                                <button type=\"button\" class=\"btn btn-secondary\" data-bs-dismiss=\"modal\">Close</button>\n                            </div>\n                        </div>\n                    </div>\n                </div>\n\n                <!-- Page content -->\n                <div id=\"quote_content\" class=\"col-12 col-lg-8 col-xxl-9 mt-5 mt-lg-0\">\n\n                    <!-- Modals container -->\n                    <div role=\"dialog\" class=\"modal fade\" id=\"modalaccept\" name=\"sale_order_modal_sign_and_pay\">\n                        <div t-if=\"sale_order._has_to_be_signed() and not payment_amount\" t-call=\"sale.sale_order_portal_sign_modal\" class=\"modal-dialog\"/>\n                        <div t-elif=\"not sale_order._has_to_be_signed()                                     and sale_order._has_to_be_paid()                                     or (payment_amount and sale_order.state != 'cancel')\" name=\"sale_order_modal_validate\" t-call=\"sale.sale_order_portal_pay_modal\" class=\"modal-dialog\"/>\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 == 'sale'\">\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.get_portal_last_transaction()\">\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\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 cancelled.</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=\"#{'pb-5' if report_type == 'html' else ''}\" id=\"portal_sale_content\">\n                        <div t-call=\"#{sale_order._get_name_portal_content_view()}\"/>\n                    </div>\n\n                    <!-- bottom actions -->\n                    <div t-if=\"sale_order._has_to_be_signed() or sale_order._has_to_be_paid()\" class=\"d-flex justify-content-center gap-1 d-print-none\" name=\"sale_order_actions\">\n\n                        <t t-if=\"sale_order._has_to_be_signed()\">\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()\"> 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-light\" 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()\" 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                    <hr/>\n                    <div id=\"sale_order_communication\">\n                        <h3>Communication history</h3>\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>", "fr_FR": "<data name=\"Sales Order\" 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 o_portal_sale_sidebar\" t-att-data-order-amount-total=\"sale_order.amount_total\">\n                <!-- Sidebar -->\n                <t t-call=\"portal.portal_record_sidebar\" id=\"sale_order_portal_sidebar\">\n                    <t t-set=\"classes\" t-value=\"'col-lg-4 col-xxl-3 d-print-none'\"/>\n                    <t t-set=\"title\">\n                        <t t-if=\"sale_order.state in 'draft,sent' and sale_order.prepayment_percent != 1.0\">\n                            <h4>Down payment</h4>\n                            <h2>\n                                <t t-out=\"sale_order._get_prepayment_required_amount()\" t-options=\"{                                         'widget': 'monetary',                                         'display_currency': sale_order.currency_id,                                     }\"/>\n                                (<t t-out=\"sale_order.prepayment_percent * 100\"/>%)\n                            </h2>\n                        </t>\n                        <h2 t-else=\"\" t-field=\"sale_order.amount_total\" class=\"mb-0 text-break\"/>\n                    </t>\n                    <t t-set=\"entries\">\n                        <div t-if=\"0 &lt; sale_order.amount_paid &lt; sale_order.amount_total                                   and sale_order.state != 'cancel'\" class=\"alert alert-success mt-3\" role=\"alert\">\n                            Amount paid:\n                            <span t-field=\"sale_order.amount_paid\" t-options=\"{                                     'widget': 'monetary',                                     'display_currency': sale_order.currency_id,                                 }\"/>\n                        </div>\n\n                        <div class=\"d-flex flex-column gap-4 mt-3\">\n                            <div class=\"d-flex flex-column gap-2\" id=\"sale_order_sidebar_button\">\n                                <a t-if=\"sale_order._has_to_be_signed() and not payment_amount\" role=\"button\" class=\"btn btn-primary\" data-bs-toggle=\"modal\" data-bs-target=\"#modalaccept\" href=\"#\"> <!-- If paying by link, signing is skipped. -->\n                                    <i class=\"fa fa-check\"/>\n                                    <t t-if=\"sale_order._has_to_be_paid()\"> Signer &amp; Payer</t>\n                                    <t t-else=\"\"> Accepter &amp; Signer</t>\n                                </a>\n                                <a t-elif=\"sale_order._has_to_be_paid()                                             or (                                                 payment_amount                                                 and sale_order.amount_paid &lt; sale_order.amount_total                                                 and sale_order.state != 'cancel'                                             )\" id=\"o_sale_portal_paynow\" role=\"button\" data-bs-toggle=\"modal\" data-bs-target=\"#modalaccept\" href=\"#\" t-att-class=\"'btn btn-primary' if not sale_order.transaction_ids else 'btn btn-light'\">\n                                    <i class=\"fa fa-check\"/>\n                                    <t t-if=\"not sale_order.signature                                              and sale_order._has_to_be_paid()                                              and not payment_amount\"> Accepter &amp; Payer</t>\n                                    <t t-else=\"\"> Payer maintenant</t>\n                                </a>\n                                <div class=\"o_download_pdf d-flex gap-2 flex-lg-column flex-xl-row flex-wrap\">\n                                    <a class=\"btn btn-light o_print_btn o_portal_invoice_print flex-grow-1\" t-att-href=\"sale_order.get_portal_url(report_type='pdf')\" id=\"print_invoice_report\" title=\"Voir les détails\" role=\"button\" target=\"_blank\"><i class=\"fa fa-print me-1\"/>Voir les détails</a>\n                                </div>\n                            </div>\n\n                            <div class=\"navspy flex-grow-1 ps-0\" t-ignore=\"true\" role=\"complementary\">\n                                <ul class=\"nav flex-column bs-sidenav\"/>\n                            </div>\n\n                            <t t-if=\"not sale_order.is_expired and sale_order.state in ['draft', 'sent']\">\n                                <div t-if=\"sale_order.amount_undiscounted - sale_order.amount_untaxed &gt; 0.01\" class=\"list-group-item flex-grow-1\" name=\"sale_order_advantage\">\n                                    <small><b class=\"text-muted\">Votre avantage</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.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\"/> Toutes taxes comprises)</small>\n                                    </t>\n                                </div>\n                            </t>\n\n                            <div t-if=\"sale_order.user_id\">\n                                <h6><small class=\"text-muted\">Votre contact</small></h6>\n                                <t t-call=\"portal.portal_my_contact\">\n                                    <t t-set=\"_contactAvatar\" t-value=\"image_data_uri(sale_order.user_id.avatar_128)\"/>\n                                    <t t-set=\"_contactName\" t-value=\"sale_order.user_id.name\"/>\n                                    <t t-set=\"_contactLink\" t-value=\"True\"/>\n                                </t>\n                            </div>\n\n                            <div t-if=\"sale_order._get_edi_builders()\">\n                                <button id=\"portal_connect_software_modal_btn\" type=\"button\" class=\"btn btn-primary\" data-bs-toggle=\"modal\" data-bs-target=\"#sale_portal_connect_software_modal\">\n                                        Connect with your software!\n                                </button>\n                            </div>\n                        </div>\n                    </t>\n                </t>\n\n                <div class=\"modal fade\" id=\"sale_portal_connect_software_modal\" tabindex=\"-1\" role=\"dialog\" aria-hidden=\"true\">\n                    <div class=\"modal-dialog modal-lg\" role=\"document\">\n                        <div class=\"modal-content\">\n                            <div class=\"modal-body\">\n                                <div>\n                                    <h5>Want to import this document in Odoo?</h5>\n                                    <p>Drag and drop the request for quotation PDF file into your list of quotations in Odoo. Enjoy the automation!</p>\n                                </div>\n                                <div>\n                                    <h5>Not using Odoo?</h5>\n                                    <div class=\"input-group mb-3 w-50\">\n                                        <t t-set=\"base_address\" t-value=\"sale_order.env['ir.config_parameter'].sudo().get_param('web.base.url')\"/>\n                                        <t t-set=\"doc_url\" t-value=\"base_address + '/my/orders/' + str(sale_order.id) + '/download_edi?' + str(keep_query())\"/>\n                                        <input type=\"text\" class=\"form-control\" aria-describedby=\"copy-button\" readonly=\"readonly\" t-att-value=\"doc_url\"/>\n                                        <button class=\"btn btn-outline-secondary\" type=\"button\" id=\"copy-button\" t-attf-onclick=\"navigator.clipboard.writeText('#{doc_url}')\">Copy</button>\n                                    </div>\n                                    <p>Use the above REST URL to get structured data of the purchase order in UBL format.\n                                        <a href=\"https://www.odoo.com/documentation/\">Read the documentation </a>to learn all the ways to connect your software with <a href=\"https://www.odoo.com\">Odoo</a>.\n                                    </p>\n                                </div>\n                                <div>\n                                    <h5>You don't use a good CRM software?</h5>\n                                    <p><a href=\"https://www.odoo.com/app/sales\">Start on Odoo</a>, it's 100% free! You'll save time creating beautiful quotations and track sales.</p>\n                                </div>\n                            </div>\n                            <div class=\"modal-footer justify-content-between\">\n                                <button type=\"button\" class=\"btn btn-secondary\" data-bs-dismiss=\"modal\">Fermer</button>\n                            </div>\n                        </div>\n                    </div>\n                </div>\n\n                <!-- Page content -->\n                <div id=\"quote_content\" class=\"col-12 col-lg-8 col-xxl-9 mt-5 mt-lg-0\">\n\n                    <!-- Modals container -->\n                    <div role=\"dialog\" class=\"modal fade\" id=\"modalaccept\" name=\"sale_order_modal_sign_and_pay\">\n                        <div t-if=\"sale_order._has_to_be_signed() and not payment_amount\" t-call=\"sale.sale_order_portal_sign_modal\" class=\"modal-dialog\"/>\n                        <div t-elif=\"not sale_order._has_to_be_signed()                                     and sale_order._has_to_be_paid()                                     or (payment_amount and sale_order.state != 'cancel')\" name=\"sale_order_modal_validate\" t-call=\"sale.sale_order_portal_pay_modal\" class=\"modal-dialog\"/>\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\">Rejeter ce devis</h4>\n                                    <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Fermer\"/>\n                                </header>\n                                <main class=\"modal-body\">\n                                    <p>\n                                        Dites nous pourquoi vous refusez ce devis afin de nous aider à améliorer nos services.\n                                    </p>\n                                    <textarea rows=\"4\" name=\"decline_message\" required=\"\" placeholder=\"Votre 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\"/> Rejeter \n                                    </button>\n                                    <button type=\"button\" class=\"btn btn-primary\" data-bs-dismiss=\"modal\">\n                                        Annuler\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=\"Fermer\"/>\n                        <strong>Merci !</strong><br/>\n                        <t t-if=\"message == 'sign_ok' and sale_order.state == 'sale'\">\n                            Votre commande a été confirmée.\n                        </t>\n                        <t t-elif=\"message == 'sign_ok' and sale_order._has_to_be_paid()\">\n                            Votre commande a été signée mais doit toujours être payée afin de pouvoir être validée.\n                        </t>\n                        <t t-else=\"\">Votre commande a été signée.</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=\"Fermer\"/>\n                        Votre commande n'est pas en état d'être rejetée.\n                    </div>\n\n                    <t t-if=\"sale_order.get_portal_last_transaction()\">\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\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=\"fermer\"/>\n                        <strong>Ce devis a été annulé.</strong> <a role=\"button\" href=\"#discussion\"><i class=\"fa fa-comment\"/> Contactez-nous pour un nouveau devis.</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=\"fermer\"/>\n                        <strong>Cette offre a expiré !</strong> <a role=\"button\" href=\"#discussion\"><i class=\"fa fa-comment\"/> Contactez-nous pour un nouveau devis.</a>\n                    </div>\n\n                    <!-- main content -->\n                    <div t-attf-class=\"#{'pb-5' if report_type == 'html' else ''}\" id=\"portal_sale_content\">\n                        <div t-call=\"#{sale_order._get_name_portal_content_view()}\"/>\n                    </div>\n\n                    <!-- bottom actions -->\n                    <div t-if=\"sale_order._has_to_be_signed() or sale_order._has_to_be_paid()\" class=\"d-flex justify-content-center gap-1 d-print-none\" name=\"sale_order_actions\">\n\n                        <t t-if=\"sale_order._has_to_be_signed()\">\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()\"> Signer &amp; Payer</t><t t-else=\"\"> Accepter &amp; Signer</t></a>\n                            </div>\n                            <div class=\"col-sm-auto mt8\">\n                                <a role=\"button\" class=\"btn btn-light\" href=\"#discussion\"><i class=\"fa fa-comment\"/> Commentaires</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\"/> Rejeter </a>\n                            </div>\n                        </t>\n                        <div t-elif=\"sale_order._has_to_be_paid()\" 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\">Accepter &amp; Payer</t><t t-else=\"\">Payer maintenant</t>\n                            </a>\n                        </div>\n                    </div>\n\n                    <!-- chatter -->\n                    <hr/>\n                    <div id=\"sale_order_communication\">\n                        <h3>Historique de la communication</h3>\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>"}