diff options
| author | Géry Debongnie <ged@odoo.com> | 2018-04-24 12:33:50 +0200 |
|---|---|---|
| committer | Géry Debongnie <ged@odoo.com> | 2018-04-24 14:42:34 +0200 |
| commit | 8d17a2ae557aeddd68dd2fe78b6c052bbcc183c8 (patch) | |
| tree | 6e7dfe6d9d86971ab909f37c9b075073437e1233 /addons/web_editor/static/src | |
| parent | 7113b70762db10ce63cc334e33c3857665727881 (diff) | |
[FIX] base: do not read settings record again
The settings view is supposed to open a new record on the model
res.config.settings, perform the default_get and onchange calls, then
display the result.
However, once this is done, if the user then clicked on some links
(which do save the current record and navigate to another action), then
click on the breadcrumbs to come back to the settings view, then the
settings view will reload the current record, which has an id, and this
also will update the url.
This could be a problem. For example, in a multicompany settings,
reloading a settings view from an id will reload the settings for a
given company, even if the user changed its current company.
To fix this issue, we make sure the basic model for the settings view
'forgets' the res_id key, so it will be compelled to actually reread a
new settings form record.
Diffstat (limited to 'addons/web_editor/static/src')
0 files changed, 0 insertions, 0 deletions
