[IMP] hr_expense: display upload button on all tree and kanban views in "My expense" and "My expense reports"

Before this commit, the upload button was not displayed in all the tree/kanban views.

closes odoo/odoo#55867

Taskid: 2315124
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
This commit is contained in:
Arnaud Joset
2020-08-14 07:16:06 +00:00
parent 3a2374157b
commit 2923c8a6cf
+2 -2
View File
@@ -479,7 +479,7 @@
<field name="name">hr.expense.sheet.tree</field>
<field name="model">hr.expense.sheet</field>
<field name="arch" type="xml">
<tree string="Expense Reports" sample="1">
<tree string="Expense Reports" js_class="hr_expense_tree_dashboard_upload" sample="1">
<field name="employee_id" widget="many2one_avatar_employee"/>
<field name="accounting_date" optional="show" groups="account.group_account_manager"/>
<field name="create_date" optional="hide"/>
@@ -626,7 +626,7 @@
<field name="name">hr.expense.sheet.kanban</field>
<field name="model">hr.expense.sheet</field>
<field name="arch" type="xml">
<kanban class="o_kanban_mobile" sample="1">
<kanban class="o_kanban_mobile" js_class="hr_expense_kanban" sample="1">
<field name="name"/>
<field name="employee_id"/>
<field name="total_amount"/>