diff --git a/addons/website/controllers/main.py b/addons/website/controllers/main.py index c8e531c2dfa..578185a290c 100644 --- a/addons/website/controllers/main.py +++ b/addons/website/controllers/main.py @@ -50,7 +50,7 @@ class Website(openerp.addons.web.controllers.main.Home): def pagenew(self, path, noredirect=NOPE): web = request.registry['website'] try: - path = web.new_page(request.cr, request.uid, path, request.context) + path = web.new_page(request.cr, request.uid, path, context=request.context) except psycopg2.IntegrityError: logger.exception('Unable to create ir_model_data for page %s', path) request.cr.execute('ROLLBACK TO SAVEPOINT pagenew')