From 3b2c8bd16942fc83ba8766e03ff79a8928caceaa Mon Sep 17 00:00:00 2001 From: bch <> Date: Wed, 13 Jun 2007 13:57:10 +0000 Subject: [PATCH] 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 --- bin/osv/orm.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/osv/orm.py b/bin/osv/orm.py index dad2b0e8d31..70cb898894e 100644 --- a/bin/osv/orm.py +++ b/bin/osv/orm.py @@ -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)