Commit f13738a1 authored by Xiaowu Zhang's avatar Xiaowu Zhang

erp5_production_planning: return empty is not defined

parent b9caf282
......@@ -19,6 +19,8 @@ date_dict = {
'saturday': 6,
'sunday': 0
}
if not start_date:
return [],[]
tmp_date = start_date
day_number = tmp_date.dow()
if day_number < date_dict[period]:
......
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