<?xml version="1.0"?>
<data inherit_id="account_edi_ubl_cii.ubl_20_CommonType" primary="True">
        <xpath expr="//*[local-name()='Note']" position="before">
            <t xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2">
                <cbc:InvoiceTypeCode t-att="vals.get('document_type_code_attrs', {})" t-out="vals.get('document_type_code')"/>
            </t>
        </xpath>
        <xpath expr="//*[local-name()='AccountingCustomerParty']" position="after">
            <t xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2">
                <cac:Delivery t-foreach="vals.get('delivery_vals_list', [])" t-as="foreach_vals">
                    <t t-call="{{DeliveryType_template}}">
                        <t t-set="vals" t-value="foreach_vals"/>
                    </t>
                </cac:Delivery>
                <cac:PaymentMeans t-foreach="vals.get('payment_means_vals_list', [])" t-as="foreach_vals">
                    <t t-call="{{PaymentMeansType_template}}">
                        <t t-set="vals" t-value="foreach_vals"/>
                    </t>
                </cac:PaymentMeans>
                <cac:PaymentTerms t-foreach="vals.get('payment_terms_vals', [])" t-as="foreach_vals">
                    <t t-call="{{PaymentTermsType_template}}">
                        <t t-set="vals" t-value="foreach_vals"/>
                    </t>
                </cac:PaymentTerms>
                <cac:PrepaidPayment t-foreach="vals.get('prepaid_payments', [])" t-as="payment">
                    <cbc:ID t-out="payment.get('id')"/>
                    <cbc:PaidAmount t-att="payment.get('paid_amount_attrs', {})" t-out="format_float(payment.get('paid_amount'), vals.get('currency_dp'))"/>
                    <cbc:ReceivedDate t-out="payment.get('received_date')"/>
                    <cbc:PaidDate t-out="payment.get('paid_date')"/>
                    <cbc:InstructionID t-out="payment.get('instruction_id')"/>
                </cac:PrepaidPayment>
            </t>
        </xpath>
        <xpath expr="//*[local-name()='TaxTotal']" position="before">
            <t xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2">
                <cac:AllowanceCharge t-foreach="vals.get('allowance_charge_vals', [])" t-as="foreach_vals">
                    <t t-call="{{AllowanceChargeType_template}}">
                        <t t-set="vals" t-value="foreach_vals"/>
                    </t>
                </cac:AllowanceCharge>
            </t>
        </xpath>
        <xpath expr="//*[local-name()='TaxTotal']" position="after">
            <t xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2">
                <cac:LegalMonetaryTotal>
                    <t t-call="{{MonetaryTotalType_template}}">
                        <t t-set="vals" t-value="vals.get('monetary_total_vals', {})"/>
                    </t>
                </cac:LegalMonetaryTotal>
                <cac:InvoiceLine t-foreach="vals.get('line_vals', [])" t-as="foreach_vals">
                    <t t-call="{{InvoiceLineType_template}}">
                        <t t-set="vals" t-value="foreach_vals"/>
                    </t>
                </cac:InvoiceLine>
            </t>
        </xpath>
    <xpath expr="." position="attributes"><attribute name="t-name">account_edi_ubl_cii.ubl_20_InvoiceType</attribute></xpath></data>

    