summaryrefslogtreecommitdiff
path: root/addons/hr_expense/static/src/xml/documents_upload_views.xml
blob: a491d1a7f59c03ccef052f2f5eb545eec972b8f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?xml version="1.0" encoding="UTF-8"?>

<templates>
    <t t-name="hr.expense.DocumentsHiddenUploadForm">
        <div class="d-none o_expense_documents_upload">
            <t t-call="HiddenInputFile">
                <t t-set="multi_upload" t-value="true"/>
                <t t-set="fileupload_id" t-value="widget.fileUploadID"/>
                <t t-set="fileupload_action" t-translation="off">/web/binary/upload_attachment</t>
                <input type="hidden" name="model" t-att-value="'hr.expense'"/>
                <input type="hidden" name="id" t-att-value="0"/>
            </t>
        </div>
    </t>

    <t t-extend="ListView.buttons" t-name="ExpensesListView.buttons">
        <t t-jquery="button.o_list_button_add" t-operation="after">
            <button type="button" class="btn btn-primary o_button_upload_expense">
                Upload
            </button>
        </t>
    </t>

    <t t-extend="KanbanView.buttons" t-name="ExpensesKanbanView.buttons">
        <t t-jquery="button" t-operation="after">
            <button type="button" class="btn btn-primary o_button_upload_expense">
                Upload
            </button>
        </t>
    </t>
</templates>