summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/fields/basic_fields.js
diff options
context:
space:
mode:
authorDavid Dufresne <27902736+ddufresne@users.noreply.github.com>2019-07-19 14:46:40 +0000
committerMartin Trigaux <mat@odoo.com>2019-08-01 14:11:54 +0000
commit921fab992d51ce381b57798886ff1ede4caf89c7 (patch)
tree6a7d4cef94916691c5cec3530679cc56d5cc2fb4 /addons/web/static/src/js/fields/basic_fields.js
parente08f706b11fddce1a067d5d6bcc13ec3cd1dec1c (diff)
[FIX] google_drive: do not reset refresh_token
When setting the authorization code, a refresh token is generated in the background and stored in a system parameter. However, when saving the general settings (res.config.settings) without changing the authorization code, the refresh token is deleted. The refresh token should only be deleted if the authorization was removed. This was not the case as the set_param is always called and a value is only computed when the authorization code has changed. The current value was never retrieved. Set a ir.config_parameter only when it a value has changed. closes odoo/odoo#35028 Signed-off-by: Jérome Maes (jem) <jem@openerp.com>
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
0 files changed, 0 insertions, 0 deletions