[FIX] portal: error during portal creation

bzr revid: odo@openerp.com-20110408150934-syexdxv49u573m61
This commit is contained in:
Olivier Dony
2011-04-08 17:09:34 +02:00
parent 84d5cf2189
commit b1bd44df42
+3 -3
View File
@@ -2,7 +2,7 @@
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2011 Tiny SPRL (<http://tiny.be>).
# Copyright (C) 2004-2011 OpenERP S.A (<http://www.openerp.com>).
#
# 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):