Reviewers: ,
Please review this at http://codereview.tryton.org/20001/ Affected files: M tryton/gui/window/view_form/model/field.py Index: tryton/gui/window/view_form/model/field.py =================================================================== --- a/tryton/gui/window/view_form/model/field.py +++ b/tryton/gui/window/view_form/model/field.py @@ -73,6 +73,8 @@ return context def validate(self, record, softvalidation=False): + if self.attrs.get('readonly'): + return True res = True self.get_state_attrs(record)['domain_readonly'] = False inverted_domain, domain = self.validation_domains(record) @@ -670,6 +672,8 @@ return screen_domain, screen_domain def validate(self, record, softvalidation=False): + if self.attrs.get('readonly'): + return True res = True for record2 in record.value.get(self.name, []): if not record2.loaded: -- [email protected] mailing list
