KERNEL: not delete menu when they have id
bzr revid: bch-bf683e6c08d6222e78e7ebf268df6cd656d68b06
This commit is contained in:
parent
45d0f1ecde
commit
1900b9a6a8
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue