{"en_US": "<data name=\"Payment on My Invoices\" inherit_id=\"account.portal_my_invoices\">\n        <xpath expr=\"//t[@t-call='portal.portal_table']/thead/tr/th[last()]\" position=\"before\">\n            <th/>\n        </xpath>\n        <xpath expr=\"//t[@t-foreach='invoices']/tr/td[last()]\" position=\"before\">\n            <td class=\"text-center\">\n                <t t-set=\"tx_ids\" t-value=\"invoice.transaction_ids.filtered(lambda tx: tx.state in ('pending', 'authorized'))\"/>\n                <t t-set=\"pending_manual_txs\" t-value=\"tx_ids.filtered(lambda tx: tx.state == 'pending' and tx.provider_code in ('none', 'custom'))\"/>\n                <a t-if=\"invoice.state == 'posted' and invoice.payment_state in ('not_paid', 'partial') and invoice.amount_total and invoice.move_type == 'out_invoice' and (pending_manual_txs or not tx_ids or invoice.amount_paid &lt; invoice.amount_total)\" t-att-href=\"invoice.get_portal_url(anchor='portal_pay')\" title=\"Pay Now\" aria-label=\"Pay now\" class=\"btn btn-sm btn-primary\" role=\"button\">\n                    <i class=\"fa fa-arrow-circle-right\"/><span class=\"d-none d-md-inline\"> Pay Now</span>\n                </a>\n            </td>\n        </xpath>\n        <xpath expr=\"//t[@t-foreach='invoices']/tr/td[hasclass('tx_status')]\" position=\"replace\">\n            <t t-set=\"last_tx\" t-value=\"invoice.get_portal_last_transaction()\"/>\n            <td class=\"tx_status text-center\">\n                <t t-if=\"invoice.state == 'posted' and invoice.payment_state in ('not_paid', 'partial') and (last_tx.state not in ['pending', 'authorized'] or (last_tx.state == 'pending' and last_tx.provider_code in ('none', 'custom')))\">\n                    <span class=\"badge rounded-pill text-bg-info\"><i class=\"fa fa-fw fa-clock-o\"/><span class=\"d-none d-md-inline\"> Waiting for Payment</span></span>\n                </t>\n                <t t-if=\"invoice.state == 'posted' and last_tx.state == 'authorized'\">\n                    <span class=\"badge rounded-pill text-bg-primary\"><i class=\"fa fa-fw fa-check\"/><span class=\"d-none d-md-inline\"> Authorized</span></span>\n                </t>\n                <t t-if=\"invoice.state == 'posted' and last_tx.state == 'pending' and last_tx.provider_code not in ('none', 'custom')\">\n                  <span class=\"badge rounded-pill text-bg-warning\"><span class=\"d-none d-md-inline\"> Pending</span></span>\n                </t>\n                <t t-if=\"invoice.state == 'posted' and invoice.payment_state in ('paid', 'in_payment')\">\n                    <span class=\"badge rounded-pill text-bg-success\"><i class=\"fa fa-fw fa-check\"/><span class=\"d-none d-md-inline\"> Paid</span></span>\n                </t>\n                <t t-if=\"invoice.state == 'posted' and invoice.payment_state == 'reversed'\">\n                    <span class=\"badge rounded-pill text-bg-success\"><i class=\"fa fa-fw fa-check\"/><span class=\"d-none d-md-inline\"> Reversed</span></span>\n                </t>\n                <t t-if=\"invoice.state == 'cancel'\">\n                    <span class=\"badge rounded-pill text-bg-danger\"><i class=\"fa fa-fw fa-remove\"/><span class=\"d-none d-md-inline\"> Cancelled</span></span>\n                </t>\n            </td>\n        </xpath>\n    </data>", "vi_VN": "<data name=\"Payment on My Invoices\" inherit_id=\"account.portal_my_invoices\">\n        <xpath expr=\"//t[@t-call='portal.portal_table']/thead/tr/th[last()]\" position=\"before\">\n            <th/>\n        </xpath>\n        <xpath expr=\"//t[@t-foreach='invoices']/tr/td[last()]\" position=\"before\">\n            <td class=\"text-center\">\n                <t t-set=\"tx_ids\" t-value=\"invoice.transaction_ids.filtered(lambda tx: tx.state in ('pending', 'authorized'))\"/>\n                <t t-set=\"pending_manual_txs\" t-value=\"tx_ids.filtered(lambda tx: tx.state == 'pending' and tx.provider_code in ('none', 'custom'))\"/>\n                <a t-if=\"invoice.state == 'posted' and invoice.payment_state in ('not_paid', 'partial') and invoice.amount_total and invoice.move_type == 'out_invoice' and (pending_manual_txs or not tx_ids or invoice.amount_paid &lt; invoice.amount_total)\" t-att-href=\"invoice.get_portal_url(anchor='portal_pay')\" title=\"Thanh toán Ngay\" aria-label=\"Trả ngay\" class=\"btn btn-sm btn-primary\" role=\"button\">\n                    <i class=\"fa fa-arrow-circle-right\"/><span class=\"d-none d-md-inline\"> Trả ngay</span>\n                </a>\n            </td>\n        </xpath>\n        <xpath expr=\"//t[@t-foreach='invoices']/tr/td[hasclass('tx_status')]\" position=\"replace\">\n            <t t-set=\"last_tx\" t-value=\"invoice.get_portal_last_transaction()\"/>\n            <td class=\"tx_status text-center\">\n                <t t-if=\"invoice.state == 'posted' and invoice.payment_state in ('not_paid', 'partial') and (last_tx.state not in ['pending', 'authorized'] or (last_tx.state == 'pending' and last_tx.provider_code in ('none', 'custom')))\">\n                    <span class=\"badge rounded-pill text-bg-info\"><i class=\"fa fa-fw fa-clock-o\"/><span class=\"d-none d-md-inline\"> Waiting for Payment</span></span>\n                </t>\n                <t t-if=\"invoice.state == 'posted' and last_tx.state == 'authorized'\">\n                    <span class=\"badge rounded-pill text-bg-primary\"><i class=\"fa fa-fw fa-check\"/><span class=\"d-none d-md-inline\"> Authorized</span></span>\n                </t>\n                <t t-if=\"invoice.state == 'posted' and last_tx.state == 'pending' and last_tx.provider_code not in ('none', 'custom')\">\n                  <span class=\"badge rounded-pill text-bg-warning\"><span class=\"d-none d-md-inline\"> Pending</span></span>\n                </t>\n                <t t-if=\"invoice.state == 'posted' and invoice.payment_state in ('paid', 'in_payment')\">\n                    <span class=\"badge rounded-pill text-bg-success\"><i class=\"fa fa-fw fa-check\"/><span class=\"d-none d-md-inline\"> Paid</span></span>\n                </t>\n                <t t-if=\"invoice.state == 'posted' and invoice.payment_state == 'reversed'\">\n                    <span class=\"badge rounded-pill text-bg-success\"><i class=\"fa fa-fw fa-check\"/><span class=\"d-none d-md-inline\"> Reversed</span></span>\n                </t>\n                <t t-if=\"invoice.state == 'cancel'\">\n                    <span class=\"badge rounded-pill text-bg-danger\"><i class=\"fa fa-fw fa-remove\"/><span class=\"d-none d-md-inline\"> Cancelled</span></span>\n                </t>\n            </td>\n        </xpath>\n    </data>"}