[FIX] website_*: add kwargs to route "my/home" methods
kwargs were needed when trying out the mobile preview on route my/home
This commit is contained in:
@@ -19,7 +19,7 @@ from odoo.addons.website_portal.controllers.main import website_account
|
||||
class WebsiteAccount(website_account):
|
||||
|
||||
@http.route()
|
||||
def account(self):
|
||||
def account(self, **kw):
|
||||
response = super(WebsiteAccount, self).account()
|
||||
lead_count = request.env['crm.lead'].search_count([
|
||||
('partner_assigned_id', '=', request.env.user.partner_id.id),
|
||||
|
||||
@@ -11,7 +11,7 @@ from odoo.addons.website_portal.controllers.main import website_account
|
||||
class website_account(website_account):
|
||||
|
||||
@http.route()
|
||||
def account(self):
|
||||
def account(self, **kw):
|
||||
""" Add sales documents to main account page """
|
||||
response = super(website_account, self).account()
|
||||
partner = request.env.user.partner_id
|
||||
|
||||
Reference in New Issue
Block a user