mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
[FIX] hr_payroll_timesheet: onchange error by sorting, better to use create_date
This commit is contained in:
@@ -48,7 +48,7 @@ class HrPayslip(models.Model):
|
||||
return work_data
|
||||
|
||||
def _pre_aggregate_timesheet_data(self, work_data, default_workentrytype):
|
||||
for ts in self.timesheet_ids.sorted('id'):
|
||||
for ts in self.timesheet_ids.sorted('create_date'):
|
||||
if ts.unit_amount:
|
||||
ts_iso = ts.date.isocalendar()
|
||||
timesheet_type = ts.work_type_id or default_workentrytype
|
||||
|
||||
Reference in New Issue
Block a user