sort hours within date
This commit is contained in:
parent
dca23eed46
commit
1167fc1673
|
@ -13,6 +13,8 @@ import dateutil.parser
|
|||
|
||||
class AccountAnalyticLine(models.Model):
|
||||
_inherit = 'account.analytic.line'
|
||||
#_order = 'date desc, id desc'
|
||||
_order = 'start_datetime desc, unit_amount'
|
||||
|
||||
@api.depends('project_id', 'employee_id')
|
||||
def name_get(self):
|
||||
|
|
|
@ -9,7 +9,7 @@ class ProjectTimelineReport(models.Model):
|
|||
|
||||
_name = "project.timesheet.report"
|
||||
_description = "Project Timesheet Report"
|
||||
_order = 'start_date desc, duration desc'
|
||||
_order = 'start_date desc, duration desc, project_id desc'
|
||||
_auto = False
|
||||
|
||||
start_date = fields.Date(string='Start Time', readonly=True)
|
||||
|
|
Loading…
Reference in New Issue