diff options
| author | Xavier Morel <xmo@openerp.com> | 2014-02-07 15:07:07 +0100 |
|---|---|---|
| committer | Xavier Morel <xmo@openerp.com> | 2014-05-19 08:32:13 +0200 |
| commit | be1fe080c93d735dd41b1c8bf8427e68ba90db6a (patch) | |
| tree | 6607f750015853f73172e869a466b4413b595348 /doc | |
| parent | a416ca66d0824a14cbbbebe368a8cf19b2eba58d (diff) | |
[FIX] ta controller parameter
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/howto/howto_website/ta-t-field | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/doc/howto/howto_website/ta-t-field b/doc/howto/howto_website/ta-t-field index 706850a41ed..9bc52d052dd 100644 --- a/doc/howto/howto_website/ta-t-field +++ b/doc/howto/howto_website/ta-t-field @@ -1,5 +1,18 @@ # HG changeset patch -# Parent e00d1176e7ba0a515a45874d9f9e8703722810d1 +# Parent 8129831c739fb22d1f6fbccdc6f453f6a0a9e24f + +diff --git a/controllers/my_controller.py b/controllers/my_controller.py +--- a/controllers/my_controller.py ++++ b/controllers/my_controller.py +@@ -13,7 +13,7 @@ class my_controller(main.Home): + }) + + @http.route('/tas/<model("academy.tas"):ta>/', auth='public', website=True) +- def ta(self, id): ++ def ta(self, ta): + return http.request.website.render('academy.ta', { + 'ta': ta, + }) diff --git a/views/templates.xml b/views/templates.xml --- a/views/templates.xml +++ b/views/templates.xml |
