From 1900b9a6a8372342880b14f4dc2d1a1537c028b3 Mon Sep 17 00:00:00 2001 From: bch <> Date: Tue, 12 Jun 2007 08:01:42 +0000 Subject: [PATCH] KERNEL: not delete menu when they have id bzr revid: bch-bf683e6c08d6222e78e7ebf268df6cd656d68b06 --- bin/addons/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/addons/__init__.py b/bin/addons/__init__.py index 2850bf15abc..72425f1e715 100644 --- a/bin/addons/__init__.py +++ b/bin/addons/__init__.py @@ -280,7 +280,9 @@ def load_modules(db, force_demo=False, status={}, update_module=False): where (id not in (select parent_id from ir_ui_menu where parent_id is not null)) and - (id not in (select res_id from ir_values where model='ir.ui.menu'))''') + (id not in (select res_id from ir_values where model='ir.ui.menu')) + and + (id not in (select res_id from ir_model_data where model='ir.ui.menu'))''') cr.execute("update ir_module_module set state=%s where state in ('to remove')", ('uninstalled', )) cr.commit()