[FIX] builbot warning
bzr revid: tfr@openerp.com-20110114103300-f6afrd7bdw559hw3
This commit is contained in:
commit
cd1642dd8c
|
@ -19,7 +19,6 @@
|
|||
#
|
||||
##############################################################################
|
||||
from osv import fields, osv
|
||||
import netsvc
|
||||
import tools
|
||||
|
||||
def _type_get(self, cr, uid, context=None):
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
#
|
||||
##############################################################################
|
||||
|
||||
from datetime import datetime, timedelta, date
|
||||
from datetime import datetime, timedelta
|
||||
from dateutil import parser
|
||||
from dateutil import rrule
|
||||
from osv import fields, osv
|
||||
|
@ -561,7 +561,7 @@ property or property parameter."),
|
|||
if vals.ref and vals.ref.user_id:
|
||||
mod_obj = self.pool.get(vals.ref._name)
|
||||
defaults = {'user_id': vals.user_id.id, 'organizer_id': vals.ref.user_id.id}
|
||||
new_event = mod_obj.copy(cr, uid, vals.ref.id, default=defaults, context=context)
|
||||
mod_obj.copy(cr, uid, vals.ref.id, default=defaults, context=context)
|
||||
self.write(cr, uid, vals.id, {'state': 'accepted'}, context)
|
||||
|
||||
return True
|
||||
|
@ -925,7 +925,6 @@ class calendar_event(osv.osv):
|
|||
"""
|
||||
if not allday or not ids:
|
||||
return {}
|
||||
event = self.browse(cr, uid, ids, context=context)[0]
|
||||
value = {
|
||||
'duration': 24
|
||||
}
|
||||
|
@ -1206,7 +1205,7 @@ e.g.: Every other month on the last Sunday of the month for 10 occurrences:\
|
|||
def onchange_edit_all(self, cr, uid, ids, rrule_type,edit_all, context=None):
|
||||
if not context:
|
||||
context = {}
|
||||
data_obj = self.pool.get('ir.model.data')
|
||||
|
||||
value = {}
|
||||
if edit_all and rrule_type:
|
||||
for id in ids:
|
||||
|
|
Loading…
Reference in New Issue