diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 21:51:50 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 21:51:50 +0700 |
| commit | 3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch) | |
| tree | a44932296ef4a9b71d5f010906253d8c53727726 /addons/hr_expense/static/src/xml | |
| parent | 0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff) | |
initial commit 2
Diffstat (limited to 'addons/hr_expense/static/src/xml')
3 files changed, 65 insertions, 0 deletions
diff --git a/addons/hr_expense/static/src/xml/documents_upload_views.xml b/addons/hr_expense/static/src/xml/documents_upload_views.xml new file mode 100644 index 00000000..a491d1a7 --- /dev/null +++ b/addons/hr_expense/static/src/xml/documents_upload_views.xml @@ -0,0 +1,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> diff --git a/addons/hr_expense/static/src/xml/expense_dashboard.xml b/addons/hr_expense/static/src/xml/expense_dashboard.xml new file mode 100644 index 00000000..ba1a10c8 --- /dev/null +++ b/addons/hr_expense/static/src/xml/expense_dashboard.xml @@ -0,0 +1,23 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<templates id="template"> + <t t-name="hr_expense.dashboard_list_header"> + <div class="o_expense_container d-flex o_form_statusbar"> + <t t-foreach="expenses" t-as="expense"> + <div t-attf-class="o_expense_card o_arrow_button flex-grow-1 d-flex flex-column border-right-0"> + <div class="content_center"> + <div> + <span t-esc="render_monetary_field(expenses[expense]['amount'], expenses[expense]['currency'])" class="h2 o_expense_purple"/> + </div> + <b class="m-2"><span t-esc="expenses[expense]['description']"/></b> + </div> + </div> + <div t-if="expense !== 'approved'" t-attf-class="o_expense_card o_arrow_button flex-grow-1 d-flex flex-column border-right-0"> + <div class="content_center"> + <span class="fa fa-angle-right fa-3x"/> + </div> + </div> + </t> + </div> + </t> +</templates> diff --git a/addons/hr_expense/static/src/xml/expense_qr_modal_template.xml b/addons/hr_expense/static/src/xml/expense_qr_modal_template.xml new file mode 100644 index 00000000..00a59f41 --- /dev/null +++ b/addons/hr_expense/static/src/xml/expense_qr_modal_template.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<templates id="template" xml:space="preserve"> +<t t-name="hr_expense_qr_code"> + <div style="text-align:center;" class="o_expense_modal"> + <t t-if="widget.url"> + <h3>Scan this QR code to get the Odoo app:</h3><br/><br/> + <img class="border border-dark rounded" t-att-src="widget.url"/> + </t> + </div> +</t> +</templates> |
