diff --git a/sao/src/model.js b/sao/src/model.js index 29a5134017..ac23bdccb4 100644 --- a/sao/src/model.js +++ b/sao/src/model.js @@ -1374,6 +1374,7 @@ return (this.deleted || this.removed || this.exception || + this.group.readonly || !this._write); }, get deletable() { diff --git a/tryton/tryton/gui/window/view_form/model/record.py b/tryton/tryton/gui/window/view_form/model/record.py index bf27dbb077..5d39fde12e 100644 --- a/tryton/tryton/gui/window/view_form/model/record.py +++ b/tryton/tryton/gui/window/view_form/model/record.py @@ -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)