Commit 89e0bfe7 authored by Sebastien Robin's avatar Sebastien Robin

ERP5/PresencePeriod : in stocks sql table, start_date should be date column

Reverse natural ways, has suggested by the document (presentation) with
reference developer-Calendar
parent d122ef0e
......@@ -108,8 +108,8 @@ class PresencePeriod(Movement, PeriodicityMixin):
period_data = copy(period_data)
date_list = [period_data['start_date'], period_data['stop_date']]
date_list.sort()
period_data['start_date'] = date_list[0]
period_data['stop_date'] = date_list[1]
period_data['start_date'] = date_list[1]
period_data['stop_date'] = date_list[0]
result.append(self.asContext(self, **period_data))
return result
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment