mirror of
https://github.com/NaN-tic/trytond-galatea_tutorial.git
synced 2023-12-14 02:32:55 +01:00
Change on_change argument field to depends decorator
This commit is contained in:
parent
06c23c7afd
commit
5e7e44c1a2
1 changed files with 1 additions and 2 deletions
|
@ -18,8 +18,7 @@ __all__ = ['GalateaTutorial', 'GalateaTutorialWebSite', 'GalateaTutorialComment'
|
|||
class GalateaTutorial(ModelSQL, ModelView):
|
||||
"Galatea Tutorial"
|
||||
__name__ = 'galatea.tutorial'
|
||||
name = fields.Char('Name', required=True, translate=True,
|
||||
on_change=['name', 'slug'])
|
||||
name = fields.Char('Name', required=True, translate=True)
|
||||
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