[FIX] google_calendar: get_param returns a string

while `timedelta` argument `weeks` expects an integer

opw-640976
This commit is contained in:
Denis Ledoux 2015-05-28 16:01:42 +02:00
parent 9fe059027e
commit f6f55d66b3
1 changed files with 1 additions and 1 deletions

View File

@ -946,7 +946,7 @@ class google_calendar(osv.AbstractModel):
self.pool['res.users'].write(cr, SUPERUSER_ID, uid, vals, context=context)
def get_minTime(self, cr, uid, context=None):
number_of_week = self.pool['ir.config_parameter'].get_param(cr, uid, 'calendar.week_synchro', default=13)
number_of_week = int(self.pool['ir.config_parameter'].get_param(cr, uid, 'calendar.week_synchro', default=13))
return datetime.now() - timedelta(weeks=number_of_week)
def get_need_synchro_attendee(self, cr, uid, context=None):