Commit 2f3d7929 authored by Rafael Monnerat's avatar Rafael Monnerat

Fixed Planning box. The domain generator scripts adds float to the dates to...

Fixed Planning box. The domain generator scripts adds float to the dates to get the next day, but this will not always get to the next day.

This domains scripts will be refatored to use DateUtils.py.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24110 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9b93a6aa
...@@ -127,6 +127,7 @@ if depth == 0:\n ...@@ -127,6 +127,7 @@ if depth == 0:\n
\n \n
# go to next date\n # go to next date\n
current_date = current_date + 3\n current_date = current_date + 3\n
current_date = DateTime(current_date.year() , current_date.month() , current_date.day())\n
else:\n else:\n
return domain_list \n return domain_list \n
\n \n
......
...@@ -79,6 +79,7 @@ while bound_start.Day() is not \'Sunday\':\n ...@@ -79,6 +79,7 @@ while bound_start.Day() is not \'Sunday\':\n
bound_start = bound_start - 1\n bound_start = bound_start - 1\n
current_date = bound_start + 7 * bound_variation\n current_date = bound_start + 7 * bound_variation\n
bound_stop = current_date + 7\n bound_stop = current_date + 7\n
current_date = DateTime(current_date.year() , current_date.month() , current_date.day())\n
\n \n
default_link_url =\'setLanePath?form_id=%s&list_selection_name=%s\' %(\n default_link_url =\'setLanePath?form_id=%s&list_selection_name=%s\' %(\n
form_id, selection_name)\n form_id, selection_name)\n
...@@ -123,6 +124,7 @@ if depth == 0:\n ...@@ -123,6 +124,7 @@ if depth == 0:\n
\n \n
category_list.append(o)\n category_list.append(o)\n
current_date = current_date + 1\n current_date = current_date + 1\n
current_date = DateTime(current_date.year() , current_date.month() , current_date.day())\n
else:\n else:\n
return domain_list\n return domain_list\n
\n \n
......
984 986
\ No newline at end of file \ No newline at end of file
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