diff --git a/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/Person_getAvailableTimeMovementList.xml b/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/Person_getAvailableTimeMovementList.xml index 660ad6fdbe0bf633666ef9c3d00b3ef37ff2532f..1b84a8f71d0f55c7fd6c679fd5ef51afeab6b6a0 100644 --- a/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/Person_getAvailableTimeMovementList.xml +++ b/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/Person_getAvailableTimeMovementList.xml @@ -131,7 +131,10 @@ def flush_list():\n for movement in movement_list:\n default_range = movement.stop_date - movement.start_date\n next_start_date = movement.date\n - next_stop_date = movement.date+default_range\n + if next_start_date <= movement.start_date:\n + next_stop_date = movement.stop_date\n + else:\n + next_stop_date = movement.date+default_range\n next_quantity = movement.total_quantity\n next_relative_url = movement.relative_url\n \n diff --git a/bt5/erp5_calendar/bt/revision b/bt5/erp5_calendar/bt/revision index f9c94c8318066ba562fd1ce1e14753071396ea54..95738485793d46fac341b01b1f8f9468b4df0dd1 100644 --- a/bt5/erp5_calendar/bt/revision +++ b/bt5/erp5_calendar/bt/revision @@ -1 +1 @@ -325 \ No newline at end of file +326 \ No newline at end of file