diff --git a/addons/web/static/src/legacy/action_adapters.js b/addons/web/static/src/legacy/action_adapters.js index 6dafd45e0c0..1f436dfe1c2 100644 --- a/addons/web/static/src/legacy/action_adapters.js +++ b/addons/web/static/src/legacy/action_adapters.js @@ -332,22 +332,26 @@ export class ViewAdapter extends ActionAdapter { /** * @override */ - async updateWidget() { + async updateWidget(nextProps) { const shouldUpdateWidget = this.shouldUpdateWidget; this.shouldUpdateWidget = true; if (!shouldUpdateWidget) { return this.magicReload(); } await this.widget.willRestore(); - const options = Object.assign({}, this.props.viewParams, { + const options = { + ...this.props.viewParams, + ...nextProps.viewParams, shouldUpdateSearchComponents: true, - }); + }; if (!this.magicReload()) { this.widget.reload(options); } return this.magicReload(); } + async renderWidget() {} + /** * Override to add the state of the legacy controller in the exported state. */ diff --git a/addons/web/static/tests/views/view_service_tests.js b/addons/web/static/tests/views/view_service_tests.js index 83082a6946a..1eb638dce8f 100644 --- a/addons/web/static/tests/views/view_service_tests.js +++ b/addons/web/static/tests/views/view_service_tests.js @@ -10,7 +10,7 @@ QUnit.module("View service", (hooks) => { hooks.beforeEach(() => { const views = { - "take.five,99,list": ``, + "take.five,99,list": ``, }; const models = {