From c9d43711192be3b55998ec2a28ae4a889760c55e Mon Sep 17 00:00:00 2001
From: Xavier Morel <xmo@openerp.com>
Date: Fri, 7 Feb 2014 11:22:03 +0100
Subject: [PATCH] [FIX] howto code samples

---
 doc/howto/howto_website/templates-basic    | 2 +-
 doc/howto/howto_website/website-dependency | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/doc/howto/howto_website/templates-basic b/doc/howto/howto_website/templates-basic
index e3475046b2d0..632d4b2f89fa 100644
--- a/doc/howto/howto_website/templates-basic
+++ b/doc/howto/howto_website/templates-basic
@@ -67,7 +67,7 @@ diff --git a/controllers/my_controller.py b/controllers/my_controller.py
 -""" % teaching_assistants[id]
 +        cr, uid, context = http.request.cr, http.request.uid, http.request.context
 +        return http.request.registry['ir.ui.view'].render(
-+            cr, uid,  "academy.tas", teaching_assistants[id], context=context)
++            cr, uid,  "academy.ta", teaching_assistants[id], context=context)
 diff --git a/views/templates.xml b/views/templates.xml
 new file mode 100644
 --- /dev/null
diff --git a/doc/howto/howto_website/website-dependency b/doc/howto/howto_website/website-dependency
index 45c097dad728..5f34268f7634 100644
--- a/doc/howto/howto_website/website-dependency
+++ b/doc/howto/howto_website/website-dependency
@@ -1,5 +1,5 @@
 # HG changeset patch
-# Parent 1960586e8781d62d0cc8c2b7b9df7b04fb20f3ae
+# Parent b2da66732141558bdf8fcc21000b98a8b67a1340
 
 diff --git a/__openerp__.py b/__openerp__.py
 --- a/__openerp__.py
@@ -41,7 +41,7 @@ diff --git a/controllers/my_controller.py b/controllers/my_controller.py
      def ta(self, id):
 -        cr, uid, context = http.request.cr, http.request.uid, http.request.context
 -        return http.request.registry['ir.ui.view'].render(
--            cr, uid,  "academy.tas", teaching_assistants[id], context=context)
+-            cr, uid,  "academy.ta", teaching_assistants[id], context=context)
 +        return http.request.website.render('academy.ta', teaching_assistants[id])
 diff --git a/views/templates.xml b/views/templates.xml
 --- a/views/templates.xml
-- 
GitLab