cannot create a new user

Bug #891164 reported by Aline (OpenERP)
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo Web (MOVED TO GITHUB)
Fix Released
High
OpenERP R&D Web Team

Bug Description

web, trunk, chrome

go to user (Administration/users/users), create a new one, click on "save" -> bug :

OpenERP Server Error
Client Traceback (most recent call last):
  File "/home/aline/source/web/trunk/addons/web/common/http.py", line 154, in dispatch
    response["result"] = method(controller, self, **self.params)
  File "/home/aline/source/web/trunk/addons/web/controllers/main.py", line 759, in create
    r = m.create(data, req.session.eval_context(req.context))
  File "/home/aline/source/web/trunk/addons/web/common/openerplib/main.py", line 429, in proxy
    *args)
  File "/home/aline/source/web/trunk/addons/web/common/openerplib/main.py", line 306, in proxy
    result = self.connector.send(self.service_name, method, *args)
  File "/home/aline/source/web/trunk/addons/web/common/openerplib/main.py", line 276, in send
    raise fault

Server Traceback (most recent call last):
  File "/home/aline/source/web/trunk/addons/web/common/openerplib/main.py", line 257, in send
    result = openerp.netsvc.dispatch_rpc(service_name, method, args)
  File "/home/aline/source/server/trunk/openerp/netsvc.py", line 325, in dispatch_rpc
    result = ExportService.getService(service_name).dispatch(method, params)
  File "/home/aline/source/server/trunk/openerp/service/web_services.py", line 580, in dispatch
    res = fn(db, uid, *params)
  File "/home/aline/source/server/trunk/openerp/osv/osv.py", line 120, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/aline/source/server/trunk/openerp/osv/osv.py", line 172, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/aline/source/server/trunk/openerp/osv/osv.py", line 163, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/aline/source/server/trunk/openerp/addons/base/res/res_users.py", line 728, in create
    return super(users_view, self).create(cr, uid, values, context)
  File "/home/aline/source/server/trunk/openerp/addons/base/res/res_users.py", line 588, in create
    user_id = super(users_implied, self).create(cr, uid, values, context)
  File "/home/aline/source/server/trunk/openerp/osv/orm.py", line 4060, in create
    cr.execute('insert into "'+self._table+'" (id'+upd0+") values ("+str(id_new)+upd1+')', tuple(upd2))
  File "/home/aline/source/server/trunk/openerp/sql_db.py", line 153, in wrapper
    return f(self, *args, **kwargs)
  File "/home/aline/source/server/trunk/openerp/sql_db.py", line 215, in execute
    res = self._obj.execute(query, params)
ProgrammingError: column "id" specified more than once
LINE 1: ...mpany_id","menu_tips","active","login","password","id","acti...
                                                             ^

Related branches

Changed in openerp-web:
assignee: nobody → OpenERP R&D Web Team (openerp-dev-web)
importance: Undecided → Low
status: New → Confirmed
Changed in openerp-web:
status: Confirmed → In Progress
Revision history for this message
Yogesh (SerpentCS) (yogesh-serpentcs) wrote :

Hello,

This bug fix on server side because id field define in view. so id field set readonly true.
Related bug : lp:868190. lp:868190 bug fixed on addons side. revison no :- 5351 and revison id :- niv-openerp <email address hidden>

Thanks,

Changed in openerp-web:
importance: Low → High
affects: openerp-web → openobject-addons
affects: openobject-addons → openerp-web
Changed in openerp-web:
status: In Progress → Confirmed
Revision history for this message
Fabien Meghazi (OpenERP) (fme) wrote :

Fixed in Revision:
1515 revid:<email address hidden>

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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