You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
568 B
13 lines
568 B
# -*- encoding: utf-8 -*-
|
|
################################################################################
|
|
# See __openerp__.py file for Copyright and Licence Informations.
|
|
################################################################################
|
|
|
|
import openerp
|
|
|
|
class WebEasySwitchCompanyController(openerp.addons.web.http.Controller):
|
|
_cp_path = '/web_easy_switch_company/switch'
|
|
|
|
@openerp.addons.web.http.jsonrequest
|
|
def change_current_company(self, req, company_id):
|
|
req.session.model('res.users').change_current_company(company_id)
|