summaryrefslogtreecommitdiff
path: root/doc/migrate
diff options
context:
space:
mode:
authorced <>2006-12-28 11:23:16 +0000
committerced <>2006-12-28 11:23:16 +0000
commitd30c3cf4e5ea8f344a95153247b74cf547e8172e (patch)
treec88450e7ac4c66b3c5fd77f01d76f569d66369e1 /doc/migrate
parent4c51a6cc549ad16675d10df9f625eba73cc5915a (diff)
Add remove old menu to migrate script
bzr revid: ced-6724d59e54acf84ece6360543b8b232e10cede7f
Diffstat (limited to 'doc/migrate')
-rw-r--r--doc/migrate/4.0.0-x.x.x/post.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/migrate/4.0.0-x.x.x/post.py b/doc/migrate/4.0.0-x.x.x/post.py
index dc1dba8577a..ed0e00f9440 100644
--- a/doc/migrate/4.0.0-x.x.x/post.py
+++ b/doc/migrate/4.0.0-x.x.x/post.py
@@ -79,5 +79,12 @@ cr = db.cursor()
cr.execute("update sale_order_line set delay = pt.sale_delay from product_product as po, product_template as pt where product_id = po.id and po.product_tmpl_id = pt.id")
cr.commit()
+# --------------- #
+# remove old menu #
+# --------------- #
+
+cr.execute("delete from ir_ui_menu 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'))")
+cr.commit()
+
cr.close()