[FIX] ir_values : get() corrected for toolbar actions/reports/act_windows
authorJay (Open ERP) <jvo@tinyerp.com>
Thu, 3 Jun 2010 06:48:32 +0000 (12:18 +0530)
committerJay (Open ERP) <jvo@tinyerp.com>
Thu, 3 Jun 2010 06:48:32 +0000 (12:18 +0530)
bzr revid: jvo@tinyerp.com-20100603064832-m5wdkfz2l0lgor5b

bin/addons/base/ir/ir_values.py

index 329335d..056ace7 100644 (file)
@@ -233,7 +233,7 @@ class ir_values(osv.osv):
                                    (tuple(groups), uid)
                                   )
                         cnt = cr.fetchone()[0]
-                        if cnt:
+                        if not cnt:
                             res2.remove(r)
                         if r[1] == 'Menuitem' and not res2:
                             raise osv.except_osv('Error !','You do not have the permission to perform this operation !!!')