[FIX] hr_expense: Fix missing upload button on expense

currently, the upload button is removed in commit: https://github.com/odoo/odoo/commit/45f3659305359fff5b0c7bf3de7d49a25ba5c36d#diff-1db56050134b0962604e0407b7d23d39R41
But it should be displayed on list view.

So in this commit, show 'Upload' button on Expenses list view.

closes odoo/odoo#52341

Taskid: 2267580
Closes: #52341
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
This commit is contained in:
Jinal Patel
2020-06-03 11:47:00 +00:00
committed by Barad Mahendra
parent 6267d5978c
commit 67d17a6cdf
+1 -1
View File
@@ -38,7 +38,7 @@
<field name="name">hr.expense.tree</field>
<field name="model">hr.expense</field>
<field name="arch" type="xml">
<tree string="Expenses" multi_edit="1">
<tree string="Expenses" multi_edit="1" js_class="hr_expense_tree_dashboard_upload">
<field name="attachment_number" invisible="True"/>
<field name="date" optional="show"/>
<field name="accounting_date" optional="hide" groups="account.group_account_invoice,account.group_account_readonly"/>