From c9b556b1d77e7ffdb1ef7c311277131096aeb458 Mon Sep 17 00:00:00 2001 From: Mantavya Gajjar Date: Wed, 21 May 2008 06:41:00 +0000 Subject: [PATCH] few changes in to the orm for the write method acl bzr revid: mga@tinyerp.com-d857a2bdc9912d07b3fc9942cf029b1b95de493f --- bin/osv/orm.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/bin/osv/orm.py b/bin/osv/orm.py index 2faa2f5d6e6..e799bf8c52f 100644 --- a/bin/osv/orm.py +++ b/bin/osv/orm.py @@ -958,7 +958,7 @@ class orm(object): res2 = self._columns[f].get(cr, self, ids, f, user, context=context, values=res) for record in res: record[f] = res2[record['id']] - + readonly = None for vals in res: for field in vals.copy(): @@ -994,7 +994,6 @@ class orm(object): vals[field] = '=No Permission=' else: vals[field] = False - return res def _validate(self, cr, uid, ids): @@ -1189,8 +1188,6 @@ class orm(object): if not fobj: continue groups = fobj.write - if not groups: - groups = fobj.read if groups: edit = False