{"en_US": "<t t-name=\"purchase.report_purchaseorder_document\">\n    <t t-call=\"web.external_layout\">\n        <t t-set=\"o\" t-value=\"o.with_context(lang=o.partner_id.lang)\"/>\n        <t t-set=\"address\">\n            <div t-field=\"o.partner_id\" t-options=\"{&quot;widget&quot;: &quot;contact&quot;, &quot;fields&quot;: [&quot;address&quot;, &quot;name&quot;, &quot;phone&quot;, &quot;vat&quot;], &quot;no_marker&quot;: True, &quot;phone_icons&quot;: True}\"/>\n        </t>\n        <t t-if=\"o.dest_address_id\">\n            <t t-set=\"information_block\">\n                <strong>Shipping address:</strong>\n                <div t-if=\"o.dest_address_id\">\n                    <div t-field=\"o.dest_address_id\" t-options=\"{&quot;widget&quot;: &quot;contact&quot;, &quot;fields&quot;: [&quot;address&quot;, &quot;name&quot;, &quot;phone&quot;], &quot;no_marker&quot;: True, &quot;phone_icons&quot;: True}\" name=\"purchase_shipping_address\"/>\n                </div>\n\n            </t>\n        </t>\n        <div class=\"page\">\n            <div class=\"oe_structure\"/>\n\n            <div class=\"mt-4\">\n                <h2 t-if=\"o.state in ['draft', 'sent', 'to approve']\">Request for Quotation #<span t-field=\"o.name\"/></h2>\n                <h2 t-if=\"o.state in ['purchase', 'done']\">Purchase Order #<span t-field=\"o.name\"/></h2>\n                <h2 t-if=\"o.state == 'cancel'\">Cancelled Purchase Order #<span t-field=\"o.name\"/></h2>\n            </div>\n\n            <div id=\"informations\" class=\"row mt-4 mb32\">\n                <div t-if=\"o.user_id\" class=\"col-3 bm-2\">\n                    <strong>Purchase Representative:</strong>\n                    <p t-field=\"o.user_id\" class=\"m-0\"/>\n                </div>\n                <div t-if=\"o.partner_ref\" class=\"col-3 bm-2\">\n                    <strong>Your Order Reference:</strong>\n                    <p t-field=\"o.partner_ref\" class=\"m-0\"/>\n                </div>\n                <div t-if=\"o.state in ['purchase','done'] and o.date_approve\" class=\"col-3 bm-2\">\n                    <strong>Order Date:</strong>\n                    <p t-field=\"o.date_approve\" class=\"m-0\"/>\n                </div>\n                <div t-elif=\"o.date_order\" class=\"col-3 bm-2\">\n                    <strong>Order Deadline:</strong>\n                    <p t-field=\"o.date_order\" class=\"m-0\"/>\n                </div>\n            </div>\n\n            <table class=\"table table-sm o_main_table table-borderless mt-4\">\n                <thead style=\"display: table-row-group\">\n                    <tr>\n                        <th name=\"th_description\"><strong>Description</strong></th>\n                        <th name=\"th_taxes\"><strong>Taxes</strong></th>\n                        <th name=\"th_date_req\" class=\"text-center\"><strong>Date Req.</strong></th>\n                        <th name=\"th_quantity\" class=\"text-end\"><strong>Qty</strong></th>\n                        <th name=\"th_price_unit\" class=\"text-end\"><strong>Unit Price</strong></th>\n                        <th name=\"th_amount\" class=\"text-end\"><strong>Amount</strong></th>\n                    </tr>\n                </thead>\n                <tbody>\n                    <t t-set=\"current_subtotal\" t-value=\"0\"/>\n                    <t t-foreach=\"o.order_line\" t-as=\"line\">\n                        <t t-set=\"current_subtotal\" t-value=\"current_subtotal + line.price_subtotal\" groups=\"account.group_show_line_subtotals_tax_excluded\"/>\n                        <t t-set=\"current_subtotal\" t-value=\"current_subtotal + line.price_total\" groups=\"account.group_show_line_subtotals_tax_included\"/>\n\n                        <tr t-att-class=\"'bg-200 fw-bold o_line_section' if line.display_type == 'line_section' else 'fst-italic o_line_note' if line.display_type == 'line_note' else ''\">\n                            <t t-if=\"not line.display_type\">\n                                <td id=\"product\">\n                                    <span t-field=\"line.name\"/>\n                                </td>\n                                <t t-set=\"taxes\" t-value=\"', '.join([(tax.description or tax.name) for tax in line.taxes_id])\"/>\n                                <td name=\"td_taxes\" t-attf-class=\"text-end {{ 'text-nowrap' if len(taxes) &lt; 10 else '' }}\">\n                                    <span t-out=\"taxes\">Tax 15%</span>\n                                </td>\n                                <td class=\"text-center\">\n                                    <span t-field=\"line.date_planned\"/>\n                                </td>\n                                <td class=\"text-end\">\n                                    <span t-field=\"line.product_qty\"/>\n                                    <span t-field=\"line.product_uom.name\" groups=\"uom.group_uom\"/>\n                                </td>\n                                <td class=\"text-end\">\n                                    <span t-field=\"line.price_unit\"/>\n                                </td>\n                                <td class=\"text-end\">\n                                    <span t-field=\"line.price_subtotal\" t-options=\"{&quot;widget&quot;: &quot;monetary&quot;, &quot;display_currency&quot;: o.currency_id}\"/>\n                                </td>\n                            </t>\n                            <t t-if=\"line.display_type == 'line_section'\">\n                                <td colspan=\"99\" id=\"section\">\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\" id=\"note\">\n                                    <span t-field=\"line.name\"/>\n                                </td>\n                            </t>\n                        </tr>\n                        <t t-if=\"current_section and (line_last or o.order_line[line_index+1].display_type == 'line_section')\">\n                            <tr class=\"is-subtotal text-end\">\n                                <td colspan=\"99\" id=\"subtotal\">\n                                    <strong class=\"mr16\">Subtotal</strong>\n                                    <span t-esc=\"current_subtotal\" t-options=\"{&quot;widget&quot;: &quot;monetary&quot;, &quot;display_currency&quot;: o.currency_id}\"/>\n                                </td>\n                            </tr>\n                        </t>\n                    </t>\n                </tbody>\n            </table>\n\n            <div id=\"total\" class=\"row justify-content-end\">\n                <div class=\"col-4\">\n                    <table class=\"table table-sm table-borderless\">\n                        <t t-set=\"tax_totals\" t-value=\"o.tax_totals\"/>\n                        <t t-call=\"account.document_tax_totals\"/>\n                    </table>\n                </div>\n            </div>\n\n            <p t-field=\"o.notes\" class=\"mt-4\"/>\n            <div class=\"oe_structure\"/>\n        </div>\n    </t>\n</t>", "vi_VN": "<t t-name=\"purchase.report_purchaseorder_document\">\n    <t t-call=\"web.external_layout\">\n        <t t-set=\"o\" t-value=\"o.with_context(lang=o.partner_id.lang)\"/>\n        <t t-set=\"address\">\n            <div t-field=\"o.partner_id\" t-options=\"{&quot;widget&quot;: &quot;contact&quot;, &quot;fields&quot;: [&quot;address&quot;, &quot;name&quot;, &quot;phone&quot;, &quot;vat&quot;], &quot;no_marker&quot;: True, &quot;phone_icons&quot;: True}\"/>\n        </t>\n        <t t-if=\"o.dest_address_id\">\n            <t t-set=\"information_block\">\n                <strong>Địa chỉ giao hàng</strong>\n                <div t-if=\"o.dest_address_id\">\n                    <div t-field=\"o.dest_address_id\" t-options=\"{&quot;widget&quot;: &quot;contact&quot;, &quot;fields&quot;: [&quot;address&quot;, &quot;name&quot;, &quot;phone&quot;], &quot;no_marker&quot;: True, &quot;phone_icons&quot;: True}\" name=\"purchase_shipping_address\"/>\n                </div>\n\n            </t>\n        </t>\n        <div class=\"page\">\n            <div class=\"oe_structure\"/>\n\n            <div class=\"mt-4\">\n                <h2 t-if=\"o.state in ['draft', 'sent', 'to approve']\">Yêu cầu báo giá #<span t-field=\"o.name\"/></h2>\n                <h2 t-if=\"o.state in ['purchase', 'done']\">Đơn mua hàng #<span t-field=\"o.name\"/></h2>\n                <h2 t-if=\"o.state == 'cancel'\">Đơn mua hàng đã hủy #<span t-field=\"o.name\"/></h2>\n            </div>\n\n            <div id=\"informations\" class=\"row mt-4 mb32\">\n                <div t-if=\"o.user_id\" class=\"col-3 bm-2\">\n                    <strong>Đại diện Mua hàng:</strong>\n                    <p t-field=\"o.user_id\" class=\"m-0\"/>\n                </div>\n                <div t-if=\"o.partner_ref\" class=\"col-3 bm-2\">\n                    <strong>Mã Đơn hàng của Bạn:</strong>\n                    <p t-field=\"o.partner_ref\" class=\"m-0\"/>\n                </div>\n                <div t-if=\"o.state in ['purchase','done'] and o.date_approve\" class=\"col-3 bm-2\">\n                    <strong>Ngày Đặt hàng:</strong>\n                    <p t-field=\"o.date_approve\" class=\"m-0\"/>\n                </div>\n                <div t-elif=\"o.date_order\" class=\"col-3 bm-2\">\n                    <strong>Thời hạn đơn hàng:</strong>\n                    <p t-field=\"o.date_order\" class=\"m-0\"/>\n                </div>\n            </div>\n\n            <table class=\"table table-sm o_main_table table-borderless mt-4\">\n                <thead style=\"display: table-row-group\">\n                    <tr>\n                        <th name=\"th_description\"><strong>Mô tả</strong></th>\n                        <th name=\"th_taxes\"><strong>Thuế</strong></th>\n                        <th name=\"th_date_req\" class=\"text-center\"><strong>Ngày YC.</strong></th>\n                        <th name=\"th_quantity\" class=\"text-end\"><strong>SL</strong></th>\n                        <th name=\"th_price_unit\" class=\"text-end\"><strong>Đơn giá</strong></th>\n                        <th name=\"th_amount\" class=\"text-end\"><strong>Số tiền</strong></th>\n                    </tr>\n                </thead>\n                <tbody>\n                    <t t-set=\"current_subtotal\" t-value=\"0\"/>\n                    <t t-foreach=\"o.order_line\" t-as=\"line\">\n                        <t t-set=\"current_subtotal\" t-value=\"current_subtotal + line.price_subtotal\" groups=\"account.group_show_line_subtotals_tax_excluded\"/>\n                        <t t-set=\"current_subtotal\" t-value=\"current_subtotal + line.price_total\" groups=\"account.group_show_line_subtotals_tax_included\"/>\n\n                        <tr t-att-class=\"'bg-200 fw-bold o_line_section' if line.display_type == 'line_section' else 'fst-italic o_line_note' if line.display_type == 'line_note' else ''\">\n                            <t t-if=\"not line.display_type\">\n                                <td id=\"product\">\n                                    <span t-field=\"line.name\"/>\n                                </td>\n                                <t t-set=\"taxes\" t-value=\"', '.join([(tax.description or tax.name) for tax in line.taxes_id])\"/>\n                                <td name=\"td_taxes\" t-attf-class=\"text-end {{ 'text-nowrap' if len(taxes) &lt; 10 else '' }}\">\n                                    <span t-out=\"taxes\">Thuế 15%</span>\n                                </td>\n                                <td class=\"text-center\">\n                                    <span t-field=\"line.date_planned\"/>\n                                </td>\n                                <td class=\"text-end\">\n                                    <span t-field=\"line.product_qty\"/>\n                                    <span t-field=\"line.product_uom.name\" groups=\"uom.group_uom\"/>\n                                </td>\n                                <td class=\"text-end\">\n                                    <span t-field=\"line.price_unit\"/>\n                                </td>\n                                <td class=\"text-end\">\n                                    <span t-field=\"line.price_subtotal\" t-options=\"{&quot;widget&quot;: &quot;monetary&quot;, &quot;display_currency&quot;: o.currency_id}\"/>\n                                </td>\n                            </t>\n                            <t t-if=\"line.display_type == 'line_section'\">\n                                <td colspan=\"99\" id=\"section\">\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\" id=\"note\">\n                                    <span t-field=\"line.name\"/>\n                                </td>\n                            </t>\n                        </tr>\n                        <t t-if=\"current_section and (line_last or o.order_line[line_index+1].display_type == 'line_section')\">\n                            <tr class=\"is-subtotal text-end\">\n                                <td colspan=\"99\" id=\"subtotal\">\n                                    <strong class=\"mr16\">Thành tiền</strong>\n                                    <span t-esc=\"current_subtotal\" t-options=\"{&quot;widget&quot;: &quot;monetary&quot;, &quot;display_currency&quot;: o.currency_id}\"/>\n                                </td>\n                            </tr>\n                        </t>\n                    </t>\n                </tbody>\n            </table>\n\n            <div id=\"total\" class=\"row justify-content-end\">\n                <div class=\"col-4\">\n                    <table class=\"table table-sm table-borderless\">\n                        <t t-set=\"tax_totals\" t-value=\"o.tax_totals\"/>\n                        <t t-call=\"account.document_tax_totals\"/>\n                    </table>\n                </div>\n            </div>\n\n            <p t-field=\"o.notes\" class=\"mt-4\"/>\n            <div class=\"oe_structure\"/>\n        </div>\n    </t>\n</t>"}