From 5df277fbc5d1587e5db4198b227f8d06a947ddee Mon Sep 17 00:00:00 2001 From: Arjun Panchal Date: Thu, 7 Mar 2024 18:43:21 +0530 Subject: [PATCH] [FIX] base_import_module: activate from form view and upgrade Before this commit ================== Unable to activate the industry from the form view in the industry section. Additionally, the button in the form for upgrading would be called the button_immediate_upgrade method, resulting in errors. After this commit ================= Activation of the industry from the form view in the industry section is now possible. Furthermore, the issue with upgrading the industry from the form view has been resolved. task-3775729 closes odoo/odoo#157008 Signed-off-by: Pierre Masereel (pim) --- addons/base_import_module/views/ir_module_views.xml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/addons/base_import_module/views/ir_module_views.xml b/addons/base_import_module/views/ir_module_views.xml index e2ccbb19344..d069f92ca59 100644 --- a/addons/base_import_module/views/ir_module_views.xml +++ b/addons/base_import_module/views/ir_module_views.xml @@ -49,6 +49,16 @@ module_type != 'official' + + + + + + to_buy or state != 'uninstalled' or (module_type and module_type != 'official') + + + state == 'uninstalled' or (module_type and module_type != 'official') +