2018-01-16 06:58:15 +01:00
# -*- coding: utf-8 -*-
2018-01-16 11:34:37 +01:00
# Part of Odoo, Flectra. See LICENSE file for full copyright and licensing details.
2018-01-16 06:58:15 +01:00
2018-01-16 11:34:37 +01:00
from flectra import fields , models
2018-01-16 06:58:15 +01:00
class User ( models . Model ) :
_inherit = ' res.users '
google_calendar_rtoken = fields . Char ( ' Refresh Token ' , copy = False )
google_calendar_token = fields . Char ( ' User token ' , copy = False )
google_calendar_token_validity = fields . Datetime ( ' Token Validity ' , copy = False )
google_calendar_last_sync_date = fields . Datetime ( ' Last synchro date ' , copy = False )
2018-01-16 11:34:37 +01:00
google_calendar_cal_id = fields . Char ( ' Calendar ID ' , copy = False , help = ' Last Calendar ID who has been synchronized. If it is changed, we remove all links between GoogleID and Flectra Google Internal ID ' )