Commit 99c22396 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 9c1c0063
...@@ -108,8 +108,8 @@ class PresencePeriod(Movement, PeriodicityMixin): ...@@ -108,8 +108,8 @@ class PresencePeriod(Movement, PeriodicityMixin):
period_data = copy(period_data) period_data = copy(period_data)
date_list = [period_data['start_date'], period_data['stop_date']] date_list = [period_data['start_date'], period_data['stop_date']]
date_list.sort() date_list.sort()
period_data['start_date'] = date_list[0] period_data['start_date'] = date_list[1]
period_data['stop_date'] = date_list[1] period_data['stop_date'] = date_list[0]
result.append(self.asContext(self, **period_data)) result.append(self.asContext(self, **period_data))
return result 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