Deactivate buttons if parent was modified
issue1809 review265001
This commit is contained in:
1 parent
e6397f5360
commit
2b5036c8f5
1 file changed
+6
@@ -37,3 +37,9 @@ class Button(gtk.Button):
|
||||
self.show()
|
||||
self.set_sensitive(not states.get('readonly', False))
|
||||
self._set_icon(states.get('icon', self.attrs.get('icon')))
|
||||
parent = record.parent if record else None
|
||||
while parent:
|
||||
if parent.modified:
|
||||
self.set_sensitive(False)
|
||||
break
|
||||
parent = parent.parent
|
||||
Reference in new issue
Block a user