Skip to content

Commit

Permalink
[FIX] ta controller parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
xmo-odoo committed May 19, 2014
1 parent a416ca6 commit be1fe08
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion doc/howto/howto_website/ta-t-field
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit be1fe08

Please sign in to comment.