Reviewers: ,
Please review this at http://codereview.tryton.org/265001/ Affected files: M tryton/common/button.py Index: tryton/common/button.py =================================================================== --- a/tryton/common/button.py +++ b/tryton/common/button.py @@ -37,3 +37,5 @@ self.show() self.set_sensitive(not states.get('readonly', False)) self._set_icon(states.get('icon', self.attrs.get('icon'))) + if record and record.parent and record.parent.modified: + self.set_sensitive(False) -- [email protected] mailing list
