From b1bd44df42de8d27e8a49483c6a7578ac1067b63 Mon Sep 17 00:00:00 2001 From: Olivier Dony Date: Fri, 8 Apr 2011 17:09:34 +0200 Subject: [PATCH] [FIX] portal: error during portal creation bzr revid: odo@openerp.com-20110408150934-syexdxv49u573m61 --- addons/portal/portal.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/portal/portal.py b/addons/portal/portal.py index 046dc986bf4..5f0dce3eaf6 100644 --- a/addons/portal/portal.py +++ b/addons/portal/portal.py @@ -2,7 +2,7 @@ ############################################################################## # # OpenERP, Open Source Management Solution -# Copyright (C) 2004-2011 Tiny SPRL (). +# Copyright (C) 2004-2011 OpenERP S.A (). # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as @@ -74,8 +74,8 @@ class portal(osv.osv): # assign widgets to users if 'user_ids' in values: - self._assign_widgets_to_users(cr, uid, portal_id, context) - + self._assign_widgets_to_users(cr, uid, [portal_id], context) + return portal_id def name_get(self, cr, uid, ids, context=None):