Set record as readonly when group is readonly

This commit is contained in:
Cédric Krier
2023-03-19 01:44:05 +01:00
parent 0bff126745
commit bb0445d52d
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -1374,6 +1374,7 @@
return (this.deleted ||
this.removed ||
this.exception ||
this.group.readonly ||
!this._write);
},
get deletable() {
@@ -248,6 +248,7 @@ class Record:
return (self.deleted
or self.removed
or self.exception
or self.group.readonly
or not self._write)
readonly = property(get_readonly)