[IMP] calendar: Set default value for start* and stop* date/datetime. Else field.function start and stop are not setted by default while they are required.

This commit is contained in:
Jeremy Kersten 2014-12-12 17:09:44 +01:00
parent 08604812d8
commit b1adf3a95e
1 changed files with 3 additions and 1 deletions

View File

@ -960,6 +960,8 @@ class calendar_event(osv.Model):
'active': 1,
'user_id': lambda self, cr, uid, ctx: uid,
'partner_ids': _get_default_partners,
'start_datetime': lambda *x: datetime.now(),
'stop_datetime': lambda *x: datetime.now() + relativedelta(hours=1),
}
def _check_closing_date(self, cr, uid, ids, context=None):