Compute Group readonly with the full context

issue7614
review54301002
This commit is contained in:
Cédric Krier committed 2018-08-18 22:55:40 +02:00
1 parent 21863bdd33
commit dc12bf0c6d
1 file changed
+1 -1
+1 -1
View File
@@ -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)):