From 5b02c327025b35aca24156e4c8d60594a4bb9159 Mon Sep 17 00:00:00 2001 From: Sylvain LE GAL Date: Wed, 15 Oct 2014 00:46:07 +0200 Subject: [PATCH] [FIX] 'web_easy_switch_company' flake8 --- web_easy_switch_company/controllers/main.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/web_easy_switch_company/controllers/main.py b/web_easy_switch_company/controllers/main.py index 346d7eb7..87221880 100644 --- a/web_easy_switch_company/controllers/main.py +++ b/web_easy_switch_company/controllers/main.py @@ -25,10 +25,14 @@ from openerp.http import request class WebEasySwitchCompanyController(http.Controller): - @http.route('/web_easy_switch_company/switch/change_current_company', type='json', auth='none') + @http.route( + '/web_easy_switch_company/switch/change_current_company', + type='json', auth='none') def change_current_company(self, company_id): - registry = openerp.modules.registry.RegistryManager.get(request.session.db) + registry = openerp.modules.registry.RegistryManager.get( + request.session.db) uid = request.session.uid with registry.cursor() as cr: - res = registry.get("res.users").change_current_company(cr, uid, company_id) + res = registry.get("res.users").change_current_company( + cr, uid, company_id) return res