[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:
parent
180ecd88b7
commit
84576286c3
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue