[Trunk][saas-2] Cannot duplicate user

Bug #1267141 reported by Muschang Anthony (Acsone)
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Medium
OpenERP R&D Addons Team 1

Bug Description

I cannot duplicate an user when the module "Social Network" is installed.

I got the following error:

Traceback (most recent call last):
  File "/home/amu/project/comansys/addons-web/addons/web/http.py", line 325, in dispatch
    response["result"] = self._call_function(**self.params)
  File "/home/amu/project/comansys/addons-web/addons/web/http.py", line 174, in _call_function
    return self.func(*args, **kwargs)
  File "/home/amu/project/comansys/addons-web/addons/web/http.py", line 1060, in nfunc
    return checked_call(request.db, *args, **kwargs)
  File "/home/amu/project/comansys/parts/openerp/openerp/service/model.py", line 111, in wrapper
    return f(dbname, *args, **kwargs)
  File "/home/amu/project/comansys/addons-web/addons/web/http.py", line 1052, in checked_call
    return func(*a, **kw)
  File "/home/amu/project/comansys/addons-web/addons/web/controllers/main.py", line 1098, in call_kw
    return self._call_kw(model, method, args, kwargs)
  File "/home/amu/project/comansys/addons-web/addons/web/controllers/main.py", line 1090, in _call_kw
    return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)
  File "/home/amu/project/comansys/parts/openerp/openerp/addons/base/res/res_users.py", line 354, in copy
    return super(res_users, self).copy(cr, uid, id, default, context)
  File "/home/amu/project/comansys/parts/openerp/openerp/osv/orm.py", line 5149, in copy
    data = self.copy_data(cr, uid, id, default, context)
  File "/home/amu/project/comansys/addons/mail/res_users.py", line 85, in copy_data
    data = super(res_users, self).copy_data(*args, **kwargs)
  File "/home/amu/project/comansys/parts/openerp/openerp/osv/orm.py", line 5061, in copy_data
    lines = [other.copy_data(cr, uid, line_id, context=context) for line_id in sorted(data[f])]
  File "/home/amu/project/comansys/addons/mail/res_users.py", line 86, in copy_data
    if data.get('alias_name'):
AttributeError: 'NoneType' object has no attribute 'get'

Tags: maintenance
Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 1 (openerp-dev-addons1)
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Olivier Laurent (Acsone) (olivier-laurent) wrote :

Linked to opw-603405

tags: added: maintenance
Revision history for this message
Denis Ledoux (OpenERP) (dle-openerp) wrote :

Fixed in revision 9101 of saas-2 branch <email address hidden>

Changed in openobject-addons:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.