From 613b6343a99ea85f20cee9b56f03e5ee78695e7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9ry=20Debongnie?= Date: Mon, 25 Jul 2022 08:26:25 +0000 Subject: [PATCH] [REF] mrp_subcontracting: update move list view to owl It now uses the new owl code, instead of the legacy list view, which will be removed in the future. closes odoo/odoo#96595 Signed-off-by: Aaron Bohy (aab) --- .../src/subcontracting_portal/move_list_view.js | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/addons/mrp_subcontracting/static/src/subcontracting_portal/move_list_view.js b/addons/mrp_subcontracting/static/src/subcontracting_portal/move_list_view.js index f87cdb7b166..8a258c4a40e 100644 --- a/addons/mrp_subcontracting/static/src/subcontracting_portal/move_list_view.js +++ b/addons/mrp_subcontracting/static/src/subcontracting_portal/move_list_view.js @@ -1,12 +1,11 @@ -/** @odoo-module**/ +/** @odoo-module **/ -import ListView from 'web.ListView'; -import viewRegistry from 'web.view_registry'; +import { registry } from "@web/core/registry"; +import { listView } from "@web/views/list/list_view"; -const MoveListView = ListView.extend({ +const MoveListView = { + ...listView, searchMenuTypes: [], -}); +}; -viewRegistry.add('subcontracting_portal_move_list_view', MoveListView); - -export default MoveListView; +registry.category("views").add('subcontracting_portal_move_list_view', MoveListView);