[Fix] Production order not displaying in the calendar view, if po has no operations (#11328)

This commit is contained in:
rohitwaghchaure 2017-10-25 17:04:31 +05:30 committed by Nabin Hait
parent 2e6f6d6749
commit e02ee898e9

View File

@ -569,7 +569,7 @@ def get_events(start, end, filters=None):
where ((ifnull(planned_start_date, '0000-00-00')!= '0000-00-00') \
and (planned_start_date <= %(end)s) \
and ((ifnull(planned_start_date, '0000-00-00')!= '0000-00-00') \
and planned_end_date >= %(start)s)) {conditions}
and ifnull(planned_end_date, '2199-12-31 00:00:00') >= %(start)s)) {conditions}
""".format(conditions=conditions), {
"start": start,
"end": end