{"en_US": "<data name=\"Order Options\" inherit_id=\"sale.sale_order_portal_content\">\n\n        <xpath expr=\"//section[@id='details']//t[@t-set='display_discount']\" position=\"after\">\n            <t t-set=\"display_remove\" t-value=\"sale_order.state in ('draft', 'sent') and any(line.sale_order_option_ids for line in sale_order.order_line)\"/>\n        </xpath>\n\n        <xpath expr=\"//section[@id='details']//table[@id='sales_order_table']/thead/tr\" position=\"inside\">\n            <!-- add blank Tr in thead for layout conciseness -->\n            <th t-if=\"display_remove\">\n            </th>\n        </xpath>\n\n        <xpath expr=\"//section[@id='details']//t[@t-if='not line.display_type']\" position=\"inside\">\n            <td class=\"text-center\" t-if=\"display_remove\">\n                <a t-att-data-line-id=\"line.id\" t-att-data-unlink=\"True\" href=\"#\" class=\"mb8 js_update_line_json d-print-none\" t-if=\"sale_order.state in ('draft', 'sent') and line.sale_order_option_ids\" aria-label=\"Remove\" title=\"Remove\">\n                    <span class=\"fa fa-trash-o\"/>\n                </a>\n            </td>\n        </xpath>\n\n        <xpath expr=\"//section[@id='signature']\" position=\"after\">\n            <t t-if=\"any((not option.is_present) for option in sale_order.sale_order_option_ids)\">\n                <section>\n                    <h3>Options</h3>\n                    <t t-set=\"display_discount\" t-value=\"True in [option.discount &gt; 0 for option in sale_order.sale_order_option_ids]\"/>\n                    <table class=\"table table-sm\">\n                        <thead>\n                            <tr>\n                                <th class=\"text-start\">Product</th>\n                                <th t-if=\"display_discount\" class=\"text-end\">Disc.%\n                                </th>\n                                <th class=\"text-end\">Unit Price</th>\n                                <th t-if=\"sale_order.state in ['draft', 'sent'] and report_type == 'html'\"/>\n                            </tr>\n                        </thead>\n                        <tbody>\n                            <tr t-foreach=\"sale_order.sale_order_option_ids\" t-as=\"option\">\n                                <t t-if=\"not option.is_present\">\n                                    <td>\n                                        <div t-field=\"option.name\"/>\n                                    </td>\n                                    <td t-if=\"display_discount\" class=\"text-end\">\n                                        <strong t-if=\"option.discount\" class=\"text-info\">\n                                            <t t-out=\"((option.discount % 1) and '%s' or '%d') % option.discount\"/>%\n                                        </strong>\n                                    </td>\n                                    <td>\n                                        <strong class=\"text-end\">\n                                            <div t-field=\"option.price_unit\" t-options=\"{&quot;widget&quot;: &quot;monetary&quot;, &quot;display_currency&quot;: sale_order.pricelist_id.currency_id}\" t-att-style=\"option.discount and 'text-decoration: line-through' or None\" t-att-class=\"option.discount and 'text-danger' or None\"/>\n                                            <div t-if=\"option.discount\">\n                                                <t t-out=\"(1-option.discount / 100.0) * option.price_unit\" t-options=\"{&quot;widget&quot;: &quot;monetary&quot;, &quot;display_currency&quot;: sale_order.pricelist_id.currency_id}\"/>\n                                            </div>\n                                        </strong>\n                                    </td>\n                                    <td class=\"text-center\" t-if=\"sale_order.state in ['draft', 'sent'] and report_type == 'html'\">\n                                        <a t-att-data-option-id=\"option.id\" href=\"#\" class=\"mb8 js_add_optional_products d-print-none\" aria-label=\"Add to cart\" title=\"Add to cart\">\n                                            <span class=\"fa fa-shopping-cart\"/>\n                                        </a>\n                                    </td>\n                                </t>\n                            </tr>\n                        </tbody>\n                    </table>\n                </section>\n            </t>\n        </xpath>\n\n        <xpath expr=\"//section[@id='details']//div[@id='quote_qty']\" position=\"replace\">\n            <t t-if=\"sale_order.state in ['draft', 'sent'] and line.sale_order_option_ids\">\n                <div class=\"input-group js_quantity_container pull-right\">\n\n                    <span class=\"d-print-none input-group-text d-none d-md-inline-block\">\n                        <a t-att-data-line-id=\"line.id\" t-att-data-remove=\"True\" href=\"#\" class=\"js_update_line_json\" aria-label=\"Remove one\" title=\"Remove one\">\n                            <span class=\"fa fa-minus\"/>\n                        </a>\n                    </span>\n                    <!-- TODO add uom in this case too -->\n                    <input type=\"text\" class=\"js_quantity form-control\" t-att-data-line-id=\"line.id\" t-att-value=\"line.product_uom_qty\"/>\n                    <span class=\"d-print-none input-group-text d-none d-md-inline-block\">\n                        <a t-att-data-line-id=\"line.id\" href=\"#\" class=\"js_update_line_json\" aria-label=\"Add one\" title=\"Add one\">\n                            <span class=\"fa fa-plus\"/>\n                        </a>\n                    </span>\n                </div>\n            </t>\n            <t t-else=\"\">\n                <span t-field=\"line.product_uom_qty\"/>\n                <span t-field=\"line.product_uom\"/>\n            </t>\n        </xpath>\n\n    </data>", "vi_VN": "<data name=\"Order Options\" inherit_id=\"sale.sale_order_portal_content\">\n\n        <xpath expr=\"//section[@id='details']//t[@t-set='display_discount']\" position=\"after\">\n            <t t-set=\"display_remove\" t-value=\"sale_order.state in ('draft', 'sent') and any(line.sale_order_option_ids for line in sale_order.order_line)\"/>\n        </xpath>\n\n        <xpath expr=\"//section[@id='details']//table[@id='sales_order_table']/thead/tr\" position=\"inside\">\n            <!-- add blank Tr in thead for layout conciseness -->\n            <th t-if=\"display_remove\">\n            </th>\n        </xpath>\n\n        <xpath expr=\"//section[@id='details']//t[@t-if='not line.display_type']\" position=\"inside\">\n            <td class=\"text-center\" t-if=\"display_remove\">\n                <a t-att-data-line-id=\"line.id\" t-att-data-unlink=\"True\" href=\"#\" class=\"mb8 js_update_line_json d-print-none\" t-if=\"sale_order.state in ('draft', 'sent') and line.sale_order_option_ids\" aria-label=\"Xóa\" title=\"Xóa\">\n                    <span class=\"fa fa-trash-o\"/>\n                </a>\n            </td>\n        </xpath>\n\n        <xpath expr=\"//section[@id='signature']\" position=\"after\">\n            <t t-if=\"any((not option.is_present) for option in sale_order.sale_order_option_ids)\">\n                <section>\n                    <h3>Tùy chọn</h3>\n                    <t t-set=\"display_discount\" t-value=\"True in [option.discount &gt; 0 for option in sale_order.sale_order_option_ids]\"/>\n                    <table class=\"table table-sm\">\n                        <thead>\n                            <tr>\n                                <th class=\"text-start\">Sản phẩm</th>\n                                <th t-if=\"display_discount\" class=\"text-end\">% CK\n                                </th>\n                                <th class=\"text-end\">Đơn giá</th>\n                                <th t-if=\"sale_order.state in ['draft', 'sent'] and report_type == 'html'\"/>\n                            </tr>\n                        </thead>\n                        <tbody>\n                            <tr t-foreach=\"sale_order.sale_order_option_ids\" t-as=\"option\">\n                                <t t-if=\"not option.is_present\">\n                                    <td>\n                                        <div t-field=\"option.name\"/>\n                                    </td>\n                                    <td t-if=\"display_discount\" class=\"text-end\">\n                                        <strong t-if=\"option.discount\" class=\"text-info\">\n                                            <t t-out=\"((option.discount % 1) and '%s' or '%d') % option.discount\"/>%\n                                        </strong>\n                                    </td>\n                                    <td>\n                                        <strong class=\"text-end\">\n                                            <div t-field=\"option.price_unit\" t-options=\"{&quot;widget&quot;: &quot;monetary&quot;, &quot;display_currency&quot;: sale_order.pricelist_id.currency_id}\" t-att-style=\"option.discount and 'text-decoration: line-through' or None\" t-att-class=\"option.discount and 'text-danger' or None\"/>\n                                            <div t-if=\"option.discount\">\n                                                <t t-out=\"(1-option.discount / 100.0) * option.price_unit\" t-options=\"{&quot;widget&quot;: &quot;monetary&quot;, &quot;display_currency&quot;: sale_order.pricelist_id.currency_id}\"/>\n                                            </div>\n                                        </strong>\n                                    </td>\n                                    <td class=\"text-center\" t-if=\"sale_order.state in ['draft', 'sent'] and report_type == 'html'\">\n                                        <a t-att-data-option-id=\"option.id\" href=\"#\" class=\"mb8 js_add_optional_products d-print-none\" aria-label=\"Thêm vào giỏ hàng\" title=\"Thêm vào giỏ hàng\">\n                                            <span class=\"fa fa-shopping-cart\"/>\n                                        </a>\n                                    </td>\n                                </t>\n                            </tr>\n                        </tbody>\n                    </table>\n                </section>\n            </t>\n        </xpath>\n\n        <xpath expr=\"//section[@id='details']//div[@id='quote_qty']\" position=\"replace\">\n            <t t-if=\"sale_order.state in ['draft', 'sent'] and line.sale_order_option_ids\">\n                <div class=\"input-group js_quantity_container pull-right\">\n\n                    <span class=\"d-print-none input-group-text d-none d-md-inline-block\">\n                        <a t-att-data-line-id=\"line.id\" t-att-data-remove=\"True\" href=\"#\" class=\"js_update_line_json\" aria-label=\"Xóa một\" title=\"Xóa một\">\n                            <span class=\"fa fa-minus\"/>\n                        </a>\n                    </span>\n                    <!-- TODO add uom in this case too -->\n                    <input type=\"text\" class=\"js_quantity form-control\" t-att-data-line-id=\"line.id\" t-att-value=\"line.product_uom_qty\"/>\n                    <span class=\"d-print-none input-group-text d-none d-md-inline-block\">\n                        <a t-att-data-line-id=\"line.id\" href=\"#\" class=\"js_update_line_json\" aria-label=\"Thêm\" title=\"Thêm\">\n                            <span class=\"fa fa-plus\"/>\n                        </a>\n                    </span>\n                </div>\n            </t>\n            <t t-else=\"\">\n                <span t-field=\"line.product_uom_qty\"/>\n                <span t-field=\"line.product_uom\"/>\n            </t>\n        </xpath>\n\n    </data>"}