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:
parent
523065647d
commit
3b2c8bd169
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue