KERNEL: not delete menu when they have id

bzr revid: bch-bf683e6c08d6222e78e7ebf268df6cd656d68b06
This commit is contained in:
bch 2007-06-12 08:01:42 +00:00
parent 45d0f1ecde
commit 1900b9a6a8
1 changed files with 3 additions and 1 deletions

View File

@ -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()