def _check_date(self, cr, uid, vals, context=None):
    for obj in self.browse(cr, uid, ids):
        start_date = obj.start_date
end_date = obj.end_date
if start_date and end_date:
    pass
Функция openERP для проверки диапазона дат