OSV, bugfix:\nauto-readonly fields if write access forbidden by access_model now handle the states field correctly (i.e. blank the states dict before sending it to the client. )

bzr revid: bch-819c980f7041c0cd4cfeea8901c8ad9bff8c587c
This commit is contained in:
bch 2007-06-13 13:57:10 +00:00
parent 523065647d
commit 3b2c8bd169
1 changed files with 1 additions and 0 deletions

View File

@ -1074,6 +1074,7 @@ class orm(object):
res[f][arg] = getattr(self._columns[f], arg)
if not read_access:
res[f]['readonly']= True
res[f]['states']={}
for arg in ('digits', 'invisible'):
if hasattr(self._columns[f], arg) and getattr(self._columns[f], arg):
res[f][arg] = getattr(self._columns[f], arg)