projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
50b323c
)
SQL: help script to clean after missing ref data..
author
P. Christeas
<p_christ@hol.gr>
Wed, 14 Jan 2009 08:03:35 +0000
(10:03 +0200)
committer
P. Christeas
<p_christ@hol.gr>
Wed, 14 Jan 2009 08:03:35 +0000
(10:03 +0200)
In devel environments, db elements get messy. Clean some.
bzr revid: p_christ@hol.gr-
20090114080335
-xtfb13e3qcekh7fr
sql/clean-model.sql
[new file with mode: 0644]
patch
|
blob
diff --git a/sql/clean-model.sql
b/sql/clean-model.sql
new file mode 100644
(file)
index 0000000..
7328f6b
--- /dev/null
+++ b/
sql/clean-model.sql
@@ -0,0
+1,4
@@
+
+SELECT model, res_id, module FROM ir_model_data
+ WHERE model = 'ir.actions.act_window'
+ AND NOT EXISTS (SELECT 1 FROM ir_act_window WHERE id = ir_model_data.res_id);
\ No newline at end of file