Fix typo
bzr revid: ced-c1f42b65cfc3f5286d02b67a9e0b61cf246f79ef
This commit is contained in:
parent
10e2a6d03c
commit
88f90e4776
|
@ -136,7 +136,7 @@ cr.commit()
|
||||||
cr.execute('SELECT model_id FROM ir_model_access')
|
cr.execute('SELECT model_id FROM ir_model_access')
|
||||||
res= cr.fetchall()
|
res= cr.fetchall()
|
||||||
for r in res:
|
for r in res:
|
||||||
cr.execute('SELECT id FROM ir_model_access WHERE model_id = %d AND groupd_id IS NULL', (r[0],))
|
cr.execute('SELECT id FROM ir_model_access WHERE model_id = %d AND group_id IS NULL', (r[0],))
|
||||||
if not cr.fetchall():
|
if not cr.fetchall():
|
||||||
cr.execute("INSERT into ir_model_access (name,model_id,group_id) VALUES ('Auto-generated access by migration',%d,NULL)",(r[0],))
|
cr.execute("INSERT into ir_model_access (name,model_id,group_id) VALUES ('Auto-generated access by migration',%d,NULL)",(r[0],))
|
||||||
cr.commit()
|
cr.commit()
|
||||||
|
|
Loading…
Reference in New Issue