{"en_US": "<t t-name=\"account_edi_ubl_cii.ubl_20_InvoiceType\">\n        <t xmlns=\"urn:oasis:names:specification:ubl:schema:xsd:Invoice-2\" xmlns:cac=\"urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2\" xmlns:cbc=\"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2\">\n            <cbc:UBLVersionID t-out=\"vals.get('ubl_version_id')\"/>\n            <cbc:CustomizationID t-out=\"vals.get('customization_id')\"/>\n            <cbc:ProfileID t-out=\"vals.get('profile_id')\"/>\n            <cbc:ID t-out=\"vals.get('id')\"/>\n            <cbc:IssueDate t-out=\"vals.get('issue_date')\"/>\n            <cbc:InvoiceTypeCode t-if=\"invoice.move_type == 'out_invoice'\" t-att=\"vals.get('invoice_type_code_attrs', {})\" t-out=\"vals.get('invoice_type_code')\"/>\n            <t t-foreach=\"vals.get('note_vals', [])\" t-as=\"note\">\n                <cbc:Note t-out=\"note\"/>\n            </t>\n            <cbc:DocumentCurrencyCode t-att=\"vals.get('document_currency_code_attrs', {})\" t-out=\"invoice.currency_id.name.upper()\"/>\n            <t t-foreach=\"vals.get('invoice_period_vals_list', [])\" t-as=\"foreach_vals\">\n                <cac:InvoicePeriod>\n                    <cbc:StartDate t-out=\"foreach_vals.get('start_date')\"/>\n                    <cbc:EndDate t-out=\"foreach_vals.get('end_date')\"/>\n                </cac:InvoicePeriod>\n            </t>\n            <cac:OrderReference>\n                <cbc:ID t-esc=\"vals.get('order_reference')\"/>\n                <cbc:SalesOrderID t-esc=\"vals.get('sales_order_id')\"/>\n            </cac:OrderReference>\n            <cac:BillingReference t-if=\"vals.get('billing_reference_vals')\">\n                <cac:InvoiceDocumentReference>\n                    <cbc:ID t-out=\"vals['billing_reference_vals'].get('id')\"/>\n                    <cbc:IssueDate t-out=\"vals['billing_reference_vals'].get('issue_date')\"/>\n                </cac:InvoiceDocumentReference>\n            </cac:BillingReference>\n            <cac:AccountingSupplierParty>\n                <t t-set=\"accounting_supplier_vals\" t-value=\"vals.get('accounting_supplier_party_vals', {})\"/>\n                <cac:Party>\n                    <t t-call=\"{{PartyType_template}}\">\n                        <t t-set=\"vals\" t-value=\"accounting_supplier_vals.get('party_vals', {})\"/>\n                    </t>\n                </cac:Party>\n            </cac:AccountingSupplierParty>\n            <cac:AccountingCustomerParty>\n                <t t-set=\"accounting_customer_vals\" t-value=\"vals.get('accounting_customer_party_vals', {})\"/>\n                <cac:Party>\n                    <t t-call=\"{{PartyType_template}}\">\n                        <t t-set=\"vals\" t-value=\"accounting_customer_vals.get('party_vals', {})\"/>\n                    </t>\n                </cac:Party>\n            </cac:AccountingCustomerParty>\n            <t id=\"delivery_foreach\" t-foreach=\"vals.get('delivery_vals_list', [])\" t-as=\"foreach_vals\">\n                <cac:Delivery>\n                    <cbc:ActualDeliveryDate t-out=\"foreach_vals.get('actual_delivery_date')\"/>\n                    <cac:DeliveryLocation>\n                        <cac:Address>\n                            <t t-call=\"{{AddressType_template}}\">\n                                <t t-set=\"vals\" t-value=\"foreach_vals.get('delivery_location_vals', {}).get('delivery_address_vals', {})\"/>\n                            </t>\n                        </cac:Address>\n                    </cac:DeliveryLocation>\n                </cac:Delivery>\n            </t>\n            <!-- In UBL 2.0 PaymentMeans is only present for Invoice\n            while in UBL 2.1, it is present for Invoice and CreditNote\n            http://www.datypic.com/sc/ubl20/e-ns19_Invoice.html\n            http://www.datypic.com/sc/ubl20/e-ns14_CreditNote.html -->\n            <t t-if=\"invoice.move_type == 'out_invoice'\">\n                <t t-foreach=\"vals.get('payment_means_vals_list', [])\" t-as=\"foreach_vals\">\n                    <cac:PaymentMeans>\n                        <t t-call=\"{{PaymentMeansType_template}}\">\n                            <t t-set=\"vals\" t-value=\"foreach_vals\"/>\n                        </t>\n                    </cac:PaymentMeans>\n                </t>\n            </t>\n            <t t-foreach=\"vals.get('payment_terms_vals', [])\" t-as=\"foreach_vals\">\n                <cac:PaymentTerms>\n                    <t t-foreach=\"foreach_vals.get('note_vals', [])\" t-as=\"note\">\n                        <cbc:Note t-out=\"note\"/>\n                    </t>\n                </cac:PaymentTerms>\n            </t>\n            <t t-foreach=\"vals.get('allowance_charge_vals', [])\" t-as=\"foreach_vals\">\n                <cac:AllowanceCharge>\n                    <t t-call=\"{{AllowanceChargeType_template}}\">\n                        <t t-set=\"vals\" t-value=\"foreach_vals\"/>\n                    </t>\n                </cac:AllowanceCharge>\n            </t>\n            <t t-foreach=\"vals.get('tax_total_vals', [])\" t-as=\"foreach_vals\">\n                <cac:TaxTotal>\n                    <t t-call=\"{{TaxTotalType_template}}\">\n                        <t t-set=\"vals\" t-value=\"foreach_vals\"/>\n                    </t>\n                </cac:TaxTotal>\n            </t>\n            <cac:LegalMonetaryTotal>\n                <t t-set=\"monetary_tot_vals\" t-value=\"vals.get('legal_monetary_total_vals', {})\"/>\n                <cbc:LineExtensionAmount t-att-currencyID=\"monetary_tot_vals['currency'].name\" t-out=\"format_float(monetary_tot_vals.get('line_extension_amount'), monetary_tot_vals.get('currency_dp'))\"/>\n                <cbc:TaxExclusiveAmount t-att-currencyID=\"monetary_tot_vals['currency'].name\" t-out=\"format_float(monetary_tot_vals.get('tax_exclusive_amount'), monetary_tot_vals.get('currency_dp'))\"/>\n                <cbc:TaxInclusiveAmount t-att-currencyID=\"monetary_tot_vals['currency'].name\" t-out=\"format_float(monetary_tot_vals.get('tax_inclusive_amount'), monetary_tot_vals.get('currency_dp'))\"/>\n                <cbc:AllowanceTotalAmount t-att-currencyID=\"monetary_tot_vals['currency'].name\" t-out=\"format_float(monetary_tot_vals.get('allowance_total_amount'), monetary_tot_vals.get('currency_dp'))\"/>\n                <cbc:ChargeTotalAmount t-att-currencyID=\"monetary_tot_vals['currency'].name\" t-out=\"format_float(monetary_tot_vals.get('charge_total_amount'), monetary_tot_vals.get('currency_dp'))\"/>\n                <cbc:PrepaidAmount t-att-currencyID=\"monetary_tot_vals['currency'].name\" t-out=\"format_float(monetary_tot_vals.get('prepaid_amount'), monetary_tot_vals.get('currency_dp'))\"/>\n                <cbc:PayableAmount t-att-currencyID=\"monetary_tot_vals['currency'].name\" t-out=\"format_float(monetary_tot_vals.get('payable_amount'), monetary_tot_vals.get('currency_dp'))\"/>\n            </cac:LegalMonetaryTotal>\n            <t t-foreach=\"vals.get('invoice_line_vals', [])\" t-as=\"foreach_vals\">\n                <cac:InvoiceLine t-if=\"invoice.move_type == 'out_invoice'\">\n                    <t t-call=\"{{InvoiceLineType_template}}\">\n                        <t t-set=\"vals\" t-value=\"foreach_vals\"/>\n                    </t>\n                </cac:InvoiceLine>\n                <cac:CreditNoteLine t-if=\"invoice.move_type == 'out_refund'\">\n                    <t t-call=\"{{InvoiceLineType_template}}\">\n                        <t t-set=\"vals\" t-value=\"foreach_vals\"/>\n                    </t>\n                </cac:CreditNoteLine>\n            </t>\n        </t>\n    </t>"}