diff options
| author | Xavier Morel <xmo@odoo.com> | 2019-06-03 09:49:53 +0000 |
|---|---|---|
| committer | Xavier Morel <xmo@odoo.com> | 2019-06-03 09:49:53 +0000 |
| commit | a0bd33e0e50b93dd077fddf9bed3e0599859d919 (patch) | |
| tree | 776f6c3d0e6ce665847e61aad449371fdfbb783f /addons/web/static/src/js/views/qweb | |
| parent | 1f600826af6a15e792353af4e9535a60909d7f5b (diff) | |
[FIX] web: properly update qweb view state in reload
closes odoo/odoo#33822
Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/views/qweb')
| -rw-r--r-- | addons/web/static/src/js/views/qweb/qweb_view.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/addons/web/static/src/js/views/qweb/qweb_view.js b/addons/web/static/src/js/views/qweb/qweb_view.js index 9e79ecf19d2..45c7340d5c1 100644 --- a/addons/web/static/src/js/views/qweb/qweb_view.js +++ b/addons/web/static/src/js/views/qweb/qweb_view.js @@ -65,8 +65,9 @@ var Model = AbstractModel.extend({ /** * reload */ - reload: function (_id, _params) { - // FIXME: update this._state or something? + reload: function (_id, params) { + _.extend(this._state, _.pick(params, ['domain', 'context'])); + return this._fetch(); } }); |
