Compute Group readonly with the full context
issue7614 review54301002
This commit is contained in:
1 parent
21863bdd33
commit
dc12bf0c6d
1 file changed
+1
-1
@@ -44,7 +44,7 @@ class Group(SignalEvent, list):
|
||||
@property
|
||||
def readonly(self):
|
||||
# Must skip res.user for Preference windows
|
||||
if (self._context.get('_datetime')
|
||||
if (self.context.get('_datetime')
|
||||
or (not (MODELACCESS[self.model_name]['write']
|
||||
or MODELACCESS[self.model_name]['create'])
|
||||
and not self.skip_model_access)):
|
||||
|
||||
Reference in new issue
Block a user