Reviewers: ,
Please review this at http://codereview.tryton.org/450001/ Affected files: M proteus/__init__.py Index: proteus/__init__.py =================================================================== --- a/proteus/__init__.py +++ b/proteus/__init__.py @@ -20,7 +20,6 @@ from types import NoneType import proteus.config -from proteus.pyson import PYSONDecoder _MODELS = threading.local() @@ -760,6 +759,8 @@ def _on_change(self, name): 'Call on_change for field' + # Import locally to not break installation + from proteus.pyson import PYSONDecoder definition = self._fields[name] if definition.get('on_change'): if isinstance(definition['on_change'], basestring): -- [email protected] mailing list
