summaryrefslogtreecommitdiff
path: root/addons/hr_expense/views/account_journal_dashboard.xml
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
committerstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
commit3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch)
treea44932296ef4a9b71d5f010906253d8c53727726 /addons/hr_expense/views/account_journal_dashboard.xml
parent0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff)
initial commit 2
Diffstat (limited to 'addons/hr_expense/views/account_journal_dashboard.xml')
-rw-r--r--addons/hr_expense/views/account_journal_dashboard.xml24
1 files changed, 24 insertions, 0 deletions
diff --git a/addons/hr_expense/views/account_journal_dashboard.xml b/addons/hr_expense/views/account_journal_dashboard.xml
new file mode 100644
index 00000000..e589a4f6
--- /dev/null
+++ b/addons/hr_expense/views/account_journal_dashboard.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="utf-8"?>
+<odoo>
+
+ <record id="account_journal_dashboard_kanban_view_inherit_hr_expense" model="ir.ui.view">
+ <field name="name">account.journal.dashboard.kanban</field>
+ <field name="model">account.journal</field>
+ <field name="inherit_id" ref="account.account_journal_dashboard_kanban_view" />
+ <field name="arch" type="xml">
+ <xpath expr="//t[@id='account.JournalBodySalePurchase']//div[hasclass('o_kanban_primary_right')]" position="inside">
+ <div class="row" t-if="dashboard.number_expenses_to_pay">
+ <div class="col overflow-hidden text-left">
+ <a type="object" t-if="journal_type == 'purchase'" name="open_expenses_action">
+ <t t-esc="dashboard.number_expenses_to_pay"/> Expenses to Process
+ </a>
+ </div>
+ <div class="col-auto text-right">
+ <span t-if="journal_type == 'purchase'"><t t-esc="dashboard.sum_expenses_to_pay"/></span>
+ </div>
+ </div>
+ </xpath>
+ </field>
+ </record>
+
+</odoo>