diff --git a/tutorial.py b/tutorial.py index a4ebfed..4b66ba9 100644 --- a/tutorial.py +++ b/tutorial.py @@ -49,6 +49,10 @@ class GalateaTutorial(ModelSQL, ModelView): Website = Pool().get('galatea.website') return [p.id for p in Website.search([('registration','=',True)])] + @staticmethod + def default_comment(): + return True + @classmethod def __setup__(cls): super(GalateaTutorial, cls).__setup__()