summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/components/dialog/dialog.xml
blob: 3c953decbbcb5f18846ae76739a8dba79cc97578 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?xml version="1.0" encoding="UTF-8"?>
<templates xml:space="preserve">

    <t t-name="mail.Dialog" owl="1">
        <div class="o_Dialog">
            <t t-if="dialog">
                <t t-if="dialog.record">
                    <t
                        t-component="{{ dialog.record['constructor'].name }}"
                        class="o_Dialog_component"
                        t-props="{ localId: dialog.record.localId }"
                        t-ref="component"
                    />
                </t>
                <t t-else="">
                    <span>Only dialog linked to a record is currently supported!</span>
                </t>
            </t>
        </div>
    </t>

</templates>