<?xml version="1.0"?>
<t t-name="account_edi_ubl_cii.ubl_20_DeliveryType">
        <t xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2">
            <cbc:ID t-out="vals.get('delivery_id')"/>
            <cbc:ActualDeliveryDate t-out="vals.get('actual_delivery_date')"/>
            <cac:DeliveryLocation>
                <cbc:ID t-att-schemeID="vals.get('delivery_location_vals', {}).get('delivery_location_scheme_id')" t-out="vals.get('delivery_location_vals', {}).get('delivery_location_id')"/>
                <cac:Address>
                    <t t-call="{{AddressType_template}}">
                        <t t-set="vals" t-value="vals.get('delivery_location_vals', {}).get('delivery_address_vals', {})"/>
                    </t>
                </cac:Address>
            </cac:DeliveryLocation>
            <cac:DeliveryParty>
                <t t-call="{{PartyType_template}}">
                    <t t-set="vals" t-value="vals.get('delivery_party_vals', {}).get('party_vals', {})"/>
                </t>
            </cac:DeliveryParty>
        </t>
    </t>

    