diff options
| author | Denis Ledoux <dle@odoo.com> | 2016-03-30 16:01:48 +0200 |
|---|---|---|
| committer | Denis Ledoux <dle@odoo.com> | 2016-03-30 16:15:36 +0200 |
| commit | 6e07ae5a5c4d97e9931a513e1c1df70cd610efca (patch) | |
| tree | 7991bb7fbd9982142f339dd96fac9ca77af52f5c /addons/web/static/src | |
| parent | 1d5db336381c4eff81813fea64194ab559520dc3 (diff) | |
[FIX] google_drive: Generate Google Authorization Code URL
When checking `Attach Google documents to any record`
in the general settings, if you are not redirected
to a module, but, instead, the current page is refreshed
(the wizard is reloaded instead of creating a new
configuration wizard),
the default value for `google_drive_uri` was not correctly
loaded, the `client_id` in the URL
remained `False` because the wizard was not being
re-created, but reloaded,
and therefore `default_get` hasn't been re-called,
and the `client_id` changed
(it was added to the system parameters after
the installation of the module)
Therefore, the link did not include the correct
`client_id`, and it leaded to the inabibility
to use the URL:
401. That’s an error.
The OAuth client was not found.
Replacing the simple char fields by a function
field, with the correct store trigger,
force the URL value to be reloaded
when the system parameter is inserted.
opw-673274
Diffstat (limited to 'addons/web/static/src')
0 files changed, 0 insertions, 0 deletions
