Skip to content
Snippets Groups Projects
Commit a8c253e3 authored by Olivier Dony's avatar Olivier Dony
Browse files

[FIX] hr_expense: display latest expenses on top (was the case pre-9.0)

parent 8e7417ff
Branches
Tags
No related merge requests found
......@@ -12,7 +12,7 @@ class HrExpense(models.Model):
_name = "hr.expense"
_inherit = ['mail.thread', 'ir.needaction_mixin']
_description = "Expense"
_order = "date"
_order = "date desc"
name = fields.Char(string='Expense Description', readonly=True, required=True, states={'draft': [('readonly', False)]})
date = fields.Date(readonly=True, states={'draft': [('readonly', False)]}, default=fields.Date.context_today, string="Date")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment