[FIX] hr_homeworking: don't show work location if not location set

In homeworking, we currently show the work location as false if a location is
not set. This commit fixes this issue by checking if the location is set before
rendering.

task-3570053

Part-of: odoo/odoo#139736
This commit is contained in:
Leonardo Pavan Rocha
2023-11-04 00:38:21 +00:00
parent 4e41bc3d1b
commit ff2e27afde
@@ -72,7 +72,9 @@ patch(AttendeeCalendarModel.prototype, {
} else {
previousDay = dayISO;
}
events[dayISO] = currentEvent;
if (currentEvent.title) {
events[dayISO] = currentEvent;
}
}
}
}