From a048ff74846dfff7c2b46fb9c4678bad02a9840a Mon Sep 17 00:00:00 2001 From: Fabien Pinckaers Date: Wed, 9 Sep 2015 13:26:22 +0200 Subject: [PATCH] [FIX] crash in account settings: configure company data --- addons/account/models/res_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/models/res_config.py b/addons/account/models/res_config.py index de6c105d9b0..0908db0fd4b 100644 --- a/addons/account/models/res_config.py +++ b/addons/account/models/res_config.py @@ -223,7 +223,7 @@ class AccountConfigSettings(models.TransientModel): @api.multi def open_company(self): - user = self.env['res.users'].browse(uid) + user = self.env['res.users'].browse(self.env.uid) return { 'type': 'ir.actions.act_window', 'name': 'My Company',