From 00a168f1ccfe3ce530b51e5cbd12021410e99f34 Mon Sep 17 00:00:00 2001 From: Denis Ledoux Date: Tue, 13 Sep 2022 13:16:19 +0000 Subject: [PATCH] [IMP] web: rename "Fields View Get" debug menu in "Get View" Following the refactoring done in odoo/odoo#87522 renaming `fields_view_get` into `get_view` closes odoo/odoo#100086 Signed-off-by: Denis Ledoux (dle) --- addons/web/static/src/views/debug_items.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/addons/web/static/src/views/debug_items.js b/addons/web/static/src/views/debug_items.js index 966be8ae20f..3cd22e7e059 100644 --- a/addons/web/static/src/views/debug_items.js +++ b/addons/web/static/src/views/debug_items.js @@ -21,22 +21,22 @@ function viewSeparator() { debugRegistry.category("view").add("viewSeparator", viewSeparator); //------------------------------------------------------------------------------ -// Fields View Get +// Get view //------------------------------------------------------------------------------ -class FieldViewGetDialog extends Component {} -FieldViewGetDialog.template = xml` +class GetViewDialog extends Component {} +GetViewDialog.template = xml`
 
`; -FieldViewGetDialog.components = { Dialog }; -FieldViewGetDialog.props = { +GetViewDialog.components = { Dialog }; +GetViewDialog.props = { arch: { type: String }, close: { type: Function }, }; -FieldViewGetDialog.title = _lt("Fields View Get"); +GetViewDialog.title = _lt("Get View"); -export function fieldsViewGet({ component, env }) { +export function getView({ component, env }) { let { arch } = component.props; if ("viewInfo" in component.props) { //legacy @@ -44,15 +44,15 @@ export function fieldsViewGet({ component, env }) { } return { type: "item", - description: env._t("Fields View Get"), + description: env._t("Get View"), callback: () => { - env.services.dialog.add(FieldViewGetDialog, { arch }); + env.services.dialog.add(GetViewDialog, { arch }); }, sequence: 340, }; } -debugRegistry.category("view").add("fieldsViewGet", fieldsViewGet); +debugRegistry.category("view").add("getView", getView); //------------------------------------------------------------------------------ // Edit View