bzr revid: tfr@openerp.com-20110120114605-hhm706qwco5gma8v
This commit is contained in:
Thibault Francois 2011-01-20 12:46:05 +01:00
parent 83d4a5d981
commit 7a352a0528
1 changed files with 2 additions and 21 deletions

View File

@ -1404,33 +1404,18 @@ e.g.: Every other month on the last Sunday of the month for 10 occurrences:\
res = self.get_recurrent_ids(cr, uid, res, start_date, until_date, limit)
return res
<<<<<<< TREE
def get_edit_all(self, cr, uid, id, vals=None):
=======
def get_edit_all(self, cr, uid, id, vals=None, context=None):
>>>>>>> MERGE-SOURCE
"""
return true if we have to edit all meeting from the same recurrent
or only on occurency
"""
<<<<<<< TREE
meeting = self.read(cr,uid, id, ['edit_all', 'recurrency'] )
=======
meeting = self.browse(cr,uid,[id], context=context)
>>>>>>> MERGE-SOURCE
if(vals and 'edit_all' in vals): #we jsut check edit_all
<<<<<<< TREE
return vals['edit_all']
=======
return edit_all = vals['edit_all']
>>>>>>> MERGE-SOURCE
else: #it's a recurrent event and edit_all is already check
<<<<<<< TREE
return meeting['recurrency'] and meeting['edit_all']
=======
return edit_all = meeting.recurrency and meeting.edit_all
>>>>>>> MERGE-SOURCE
@ -1601,11 +1586,7 @@ e.g.: Every other month on the last Sunday of the month for 10 occurrences:\
for event_datas in self.read(cr, uid, ids, ['date', 'rrule', 'exdate'], context=context):
event_id = event_datas['id']
<<<<<<< TREE
if self.get_edit_all(cr, uid, event_id, vals=None):
=======
if(self.get_edit_all(self, cr, uid, event_id, vals=None, context=context):
>>>>>>> MERGE-SOURCE
event_id = base_calendar_id2real_id(event_id)
if isinstance(event_id, (int, long)):