[FIX] hr_expense: Expenses lines should be sorted by date too

lp bug: https://launchpad.net/bugs/616783 fixed

bzr revid: mra@mra-laptop-20101104072319-vfwjj4yzfuac7up3
This commit is contained in:
Mustufa Rangwala 2010-11-04 12:53:19 +05:30
parent 180ecd88b7
commit 84576286c3
2 changed files with 3 additions and 1 deletions

View File

@ -243,7 +243,7 @@ class hr_expense_line(osv.osv):
'unit_quantity': 1,
'date_value': time.strftime('%Y-%m-%d'),
}
_order = "sequence"
_order = "sequence, date_value desc"
def onchange_product_id(self, cr, uid, ids, product_id, uom_id, employee_id, context=None):
if context is None:

View File

@ -120,5 +120,7 @@ class hr_expense_report(osv.osv):
s.employee_id
)
""")
hr_expense_report()
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: