From 8e80f6bece2c1064d85dbb4965041abdbc1bb61d Mon Sep 17 00:00:00 2001 From: clesgow Date: Fri, 30 Sep 2022 09:27:08 +0000 Subject: [PATCH] [IMP] stock: Storage category capacity menu "Storage Category Capacity" menu appears as long as the debug mode is on, even if the "Storage Category" isn't selected in the settings and the corresponding group isn't set. Since this menu is accessible from the Storage Category form anyway, we move the link to this table in the settings (where we can safely display it in debug AND with the setting activated), and we remove it from the menu. Part of task-2985735 closes odoo/odoo#102422 X-original-commit: 8b2ca9743af423dbe89c4992f462d36d434a60a9 Signed-off-by: Arnold Moyaux (arm) Signed-off-by: Quentin Wolfs (quwo) --- addons/stock/i18n/stock.pot | 2 +- addons/stock/views/res_config_settings_views.xml | 7 +++++-- addons/stock/views/stock_storage_category_views.xml | 1 - 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/addons/stock/i18n/stock.pot b/addons/stock/i18n/stock.pot index 736c57b0a53..629fc7599e9 100644 --- a/addons/stock/i18n/stock.pot +++ b/addons/stock/i18n/stock.pot @@ -7490,8 +7490,8 @@ msgstr "" #: model:ir.model,name:stock.model_stock_storage_category_capacity #: model:ir.model.fields,field_description:stock.field_product_product__storage_category_capacity_ids #: model:ir.model.fields,field_description:stock.field_stock_package_type__storage_category_capacity_ids -#: model:ir.ui.menu,name:stock.menu_storage_categoty_capacity_config #: model_terms:ir.ui.view,arch_db:stock.stock_storage_category_capacity_tree +#: model_terms:ir.ui.view,arch_db:stock.res_config_settings_view_form msgid "Storage Category Capacity" msgstr "" diff --git a/addons/stock/views/res_config_settings_views.xml b/addons/stock/views/res_config_settings_views.xml index 3287a69b263..4e43367f592 100644 --- a/addons/stock/views/res_config_settings_views.xml +++ b/addons/stock/views/res_config_settings_views.xml @@ -445,10 +445,13 @@
Categorize your locations for smarter putaway rules
-
-
+
+
+
+
diff --git a/addons/stock/views/stock_storage_category_views.xml b/addons/stock/views/stock_storage_category_views.xml index af73e63ca6f..e6d39c9af1d 100644 --- a/addons/stock/views/stock_storage_category_views.xml +++ b/addons/stock/views/stock_storage_category_views.xml @@ -100,6 +100,5 @@ -