Reviewers: , Description: trytond: No need to change user to validate
Please review this at http://codereview.tryton.org/948002/ Affected files: M trytond/model/modelstorage.py Index: trytond/model/modelstorage.py =================================================================== --- a/trytond/model/modelstorage.py +++ b/trytond/model/modelstorage.py @@ -879,11 +879,6 @@ @classmethod def _validate(cls, records): pool = Pool() - if (Transaction().user == 0 - and Transaction().context.get('user')): - with Transaction().set_user(Transaction().context.get('user')): - return cls._validate(cls.browse(records)) - # Ensure that records are readable with Transaction().set_user(0, set_context=True): records = cls.browse(records)
