[IMP]: base_calendar: Minor Improvements

bzr revid: rpa@tinyerp.com-20100813104038-rup33spnnn218xuh
This commit is contained in:
rpa (Open ERP) 2010-08-13 16:10:38 +05:30
parent d5a380906e
commit c471c63841
1 changed files with 3 additions and 3 deletions

View File

@ -1441,14 +1441,14 @@ true, it will allow you to hide the event alarm information without removing it.
data = self.read(cr, uid, event_id, ['date', 'date_deadline', \
'rrule', 'duration'])
if data.get('rrule'):
vals.update(data)
vals.update({
data.update(vals)
data.update({
'recurrent_uid': real_event_id,
'recurrent_id': data.get('date'),
'rrule_type': 'none',
'rrule': ''
})
new_id = self.copy(cr, uid, real_event_id, default=vals, context=context)
new_id = self.copy(cr, uid, real_event_id, default=data, context=context)
context.update({'active_id': new_id, 'active_ids': [new_id]})
continue
if not real_event_id in new_ids: