2018-01-16 11:28:15 +05:30
# -*- coding: utf-8 -*-
2018-01-16 02:34:37 -08:00
# Part of Odoo, Flectra. See LICENSE file for full copyright and licensing details.
2018-01-16 11:28:15 +05:30
2018-01-16 02:34:37 -08:00
from flectra import fields , models
2018-01-16 11:28:15 +05:30
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 02:34:37 -08: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 ' )