Wrong usage of Group.context which should be called

issue7614
review54301002
This commit is contained in:
Cédric Krier committed 2018-08-18 22:57:04 +02:00
1 parent 230377544d
commit 3f337f0036
1 file changed
+1 -1
+1 -1
View File
@@ -99,7 +99,7 @@
array.get_readonly = function() {
// Must skip res.user for Preference windows
var access = Sao.common.MODELACCESS.get(this.model.name);
if (this.context._datetime ||
if (this.context()._datetime ||
(!(access.write || access.create) &&
!this.skip_model_access)) {
return true;