summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Morel <xmo@openerp.com>2010-11-23 22:52:42 +0100
committerXavier Morel <xmo@openerp.com>2010-11-23 22:52:42 +0100
commit78ca098cf7fe60dc4b69a20ce0dcdbfd0919a84b (patch)
tree062f6d921c72b0f7e8cd2ca7c7be26cef88c0200
parent6ff627d27548a97a65860e796af3a8b62d1d2ffd (diff)
[FIX] share: login value and dbname key (typo) in the codepath handling sharing to existing users
bzr revid: xmo@openerp.com-20101123215242-glqx7ooqi6eadyhy
-rw-r--r--addons/share/wizard/share_wizard.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/share/wizard/share_wizard.py b/addons/share/wizard/share_wizard.py
index 1f00efcce5e..a7789e52431 100644
--- a/addons/share/wizard/share_wizard.py
+++ b/addons/share/wizard/share_wizard.py
@@ -311,9 +311,9 @@ class share_create(osv.osv_memory):
# existing users
for user in wizard_data.user_ids:
share_url = share_root_url % \
- {'login': email,
+ {'login': user.user_id.login,
'password': '',
- 'dbame': cr.dbname} if format_url else share_root_url
+ 'dbname': cr.dbname} if format_url else share_root_url
result_obj.create(cr, uid, {
'share_wizard_id': wizard_data.id,
'login': user.user_id.login,