mirror of
https://github.com/NaN-tic/trytond-galatea_tutorial.git
synced 2023-12-14 02:32:55 +01:00
Tutorial name translate attribute
This commit is contained in:
parent
c9130e98aa
commit
7cd3b8f3c0
1 changed files with 2 additions and 1 deletions
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue