[FIX] google_calendar: get_param returns a string
while `timedelta` argument `weeks` expects an integer opw-640976
This commit is contained in:
parent
9fe059027e
commit
f6f55d66b3
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue