google_map_review/models/res_config_settings.py
2026-06-11 14:13:20 +07:00

30 lines
1.1 KiB
Python

from odoo import models, fields, api
class ResConfigSettings(models.TransientModel):
_inherit = 'res.config.settings'
google_map_review_client_id = fields.Char(
string='Client ID',
config_parameter='google_map_review.client_id',
help=(
'OAuth2 Client ID from your Google Cloud Console project. '
'Found in: APIs & Services → Credentials → OAuth 2.0 Client IDs.'
),
)
google_map_review_client_secret = fields.Char(
string='Client Secret',
config_parameter='google_map_review.client_secret',
help='OAuth2 Client Secret from your Google Cloud Console project.',
)
google_map_review_refresh_token = fields.Char(
string='Refresh Token',
config_parameter='google_map_review.refresh_token',
help=(
'Long-lived OAuth2 refresh token. '
'Obtain by running authorize.py from the google_map_review '
'standalone project, then copy the refresh_token value from '
'the generated token.json file.'
),
)