[IMP]default date set to event's date_begin.
bzr revid: vme@tinyerp.com-20140326103833-11s3q1wbir5359xd
This commit is contained in:
@@ -182,6 +182,13 @@ class event_track(osv.osv):
|
||||
'stage_id': _default_stage_id,
|
||||
'priority': '2'
|
||||
}
|
||||
def default_get(self, cr, uid, fields, context=None):
|
||||
if context is None:context = {}
|
||||
res = super(event_track, self).default_get(cr, uid, fields, context=context)
|
||||
if res.get('event_id'):
|
||||
res['date'] = self.pool.get('event.event').browse(cr, uid, res.get('event_id'), context=context).date_begin
|
||||
return res
|
||||
|
||||
def _check_if_track_overlap(self, cr, uid, ids, context=None):
|
||||
for track in self.browse(cr, uid, ids, context=context):
|
||||
#if duration and start date enter check overlapping.
|
||||
|
||||
Reference in New Issue
Block a user