Tutorial name translate attribute

This commit is contained in:
resteve 2015-04-06 19:35:54 +02:00
parent c9130e98aa
commit 7cd3b8f3c0

View file

@ -18,7 +18,8 @@ __all__ = ['GalateaTutorial', 'GalateaTutorialWebSite', 'GalateaTutorialComment'
class GalateaTutorial(ModelSQL, ModelView):
"Galatea Tutorial"
__name__ = 'galatea.tutorial'
name = fields.Char('Name', required=True, on_change=['name', 'slug'])
name = fields.Char('Name', required=True, translate=True,
on_change=['name', 'slug'])
slug = fields.Char('slug', required=True, translate=True,
help='Cannonical uri.')
slug_langs = fields.Function(fields.Dict(None, 'Slug Langs'), 'get_slug_langs')