[fix] for web client

bzr revid: tfr@openerp.com-20110120125812-xixz0c4q8lj9177m
This commit is contained in:
Thibault Francois 2011-01-20 13:58:12 +01:00
parent 7a352a0528
commit 480e6ce964
1 changed files with 2 additions and 1 deletions

View File

@ -1450,6 +1450,7 @@ e.g.: Every other month on the last Sunday of the month for 10 occurrences:\
data = self.read(cr, uid, event_id, ['date', 'date_deadline', \
'rrule', 'duration', 'exdate'])
if data.get('rrule'):
data.update(vals)
data.update({
'recurrent_uid': real_event_id,
'recurrent_id': data.get('date'),
@ -1457,7 +1458,7 @@ e.g.: Every other month on the last Sunday of the month for 10 occurrences:\
'rrule': '',
'edit_all': False,
})
data.update(vals)
new_id = self.copy(cr, uid, real_event_id, default=data, context=context)
date_new = event_id.split('-')[1]