<?xml version="1.0"?>
<t t-name="portal.address_row">
        <div name="address_row" t-attf-class="row row-cols-md-2 row-cols-lg-3 g-3 flex-nowrap flex-md-wrap o_portal_address_row">
            <t t-set="new_address_url" t-valuef="{{address_url}}?address_type={{address_type}}"/>
            <t t-if="address_type == 'delivery'" t-set="new_address_url" t-valuef="{{new_address_url}}&amp;use_delivery_as_billing={{use_delivery_as_billing}}"/>
            <div t-foreach="addresses" t-as="address" class="col-md">
                <t t-call="portal.address_kanban">
                    <t t-set="contact" t-value="address"/>
                    <t t-set="is_user_address" t-value="address == request.env.user.partner_id"/>
                    <t t-if="is_user_address">
                        <!-- Edition of main address should go through dedicated page -->
                        <t t-set="address_update_url" t-valuef="/my/account?redirect=/my/addresses"/>
                    </t>
                    <t t-set="can_be_edited" t-value="address._can_be_edited_by_current_customer()"/>
                    <t t-set="selected" t-value="address == selected_address"/>
                    <t t-set="show_removal" t-value="can_be_edited and not selected and not is_user_address"/>
                </t>
            </div>
            <div name="add_address" class="col-md">
                <a name="new_address_ref" role="button" t-att-href="new_address_url" t-att-data-address-type="address_type" class="o_address_kanban_add_new d-flex flex-column align-items-center justify-content-center h-100 p-4 mx-auto rounded text-decoration-none" style="border: 1px dashed;">
                    <i class="fa fa-plus fa-2x mb-2"/>Add Address
                </a>
            </div>
        </div>
    </t>

    