<?xml version="1.0" encoding="UTF-8"?>
<templates xml:space="preserve">

    <t t-name="web.RecordAutocomplete" >
        <AutoComplete
            placeholder="props.placeholder"
            value="props.value"
            autoSelect="true"
            resetOnSelect="props.multiSelect"
            class="props.className"
            sources="sources"
            onChange.bind="onChange"
        >
            <t t-set-slot="option" t-slot-scope="optionScope">
                <t t-if="optionScope.data.record">
                    <t t-slot="autoCompleteItem" label="optionScope.label" data="optionScope.data"/>
                </t>
                <t t-else="">
                    <t t-esc="optionScope.label"/>
                </t>
            </t>
        </AutoComplete>
    </t>

</templates>
