[FIX] website_portal: missing kwargs

The route "/my/home" is missing kwargs, therefore switching to debug
mode or trying to translate leads to a traceback.

opw-681380
This commit is contained in:
Nicolas Martinelli
2016-06-29 16:39:51 +02:00
parent cef9759c31
commit a4e4881f4c
+1 -1
View File
@@ -7,7 +7,7 @@ from openerp.tools.translate import _
class website_account(http.Controller):
@http.route(['/my', '/my/home'], type='http', auth="public", website=True)
def account(self):
def account(self, **kw):
partner = request.env.user.partner_id
# get customer sales rep