Project - Problem with adding custom field

Bug #1082003 reported by Dragan Gregurec
44
This bug affects 9 people
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Fix Released
Medium
OpenERP's Framework R&D

Bug Description

Hi,

I tried do add custom field to project, but without success.
I am using version 6.2dev-20121122-000101
You can see error report:

Client Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/openerp/addons/web/http.py", line 192, in dispatch
    response["result"] = method(self, **self.params)
  File "/usr/lib/pymodules/python2.7/openerp/addons/web/controllers/main.py", line 1242, in call_kw
    return self._call_kw(req, model, method, args, kwargs)
  File "/usr/lib/pymodules/python2.7/openerp/addons/web/controllers/main.py", line 1204, in _call_kw
    return getattr(req.session.model(model), method)(*args, **kwargs)
  File "/usr/lib/pymodules/python2.7/openerp/addons/web/session.py", line 42, in proxy
    result = self.proxy.execute_kw(self.session._db, self.session._uid, self.session._password, self.model, method, args, kw)
  File "/usr/lib/pymodules/python2.7/openerp/addons/web/session.py", line 30, in proxy_method
    result = self.session.send(self.service_name, method, *args)
  File "/usr/lib/pymodules/python2.7/openerp/addons/web/session.py", line 105, in send
    raise xmlrpclib.Fault(openerp.tools.exception_to_unicode(e), formatted_info)

Server Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/openerp/addons/web/session.py", line 91, in send
    return openerp.netsvc.dispatch_rpc(service_name, method, args)
  File "/usr/lib/pymodules/python2.7/openerp/netsvc.py", line 361, in dispatch_rpc
    result = ExportService.getService(service_name).dispatch(method, params)
  File "/usr/lib/pymodules/python2.7/openerp/service/web_services.py", line 596, in dispatch
    res = fn(db, uid, *params)
  File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 167, in execute_kw
    return self.execute(db, uid, obj, method, *args, **kw or {})
  File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 121, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 164, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/usr/lib/pymodules/python2.7/openerp/addons/base/ir/ir_model.py", line 340, in create
    self.pool.get(vals['model']).__init__(self.pool, cr)
  File "/usr/lib/pymodules/python2.7/openerp/osv/orm.py", line 1071, in __init__
    assert self._rec_name in self._columns.keys() + ['id'], "Invalid rec_name %s for model %s" % (self._rec_name, self._name)
AssertionError: Invalid rec_name name for model project.project

Tags: project

Related branches

Changed in openobject-server:
assignee: nobody → OpenERP's Framework R&D (openerp-dev-framework)
importance: Undecided → Medium
status: New → Confirmed
tags: added: project
Revision history for this message
Saransh (saransh-s) wrote :

AssertionError: Invalid rec_name name for model hr.employee

This error i am getting when i am doing in the Openerp 7 where creating custom field and its on ubuntu 12.04 trying in chrome

Revision history for this message
Dragan Gregurec (dragan-gregurec-h) wrote :

I just checked... that problem exist when you try to add custom field anywhere.

Revision history for this message
Ray Carnes (rcarnes) wrote :

I get this trying to add an HTML column to a custom model.

Revision history for this message
ajay javiya (OpenERP) (aja-openerp) wrote :

Hello Dragan Gregurec ,
we have checked issue at our end and have fixed in branch lp:~openerp-dev/openobject-server/trunk-bug-1082003-aja at revision no 4630.
Thanks for your contribution.

Changed in openobject-server:
status: Confirmed → In Progress
status: In Progress → Fix Committed
Revision history for this message
Dragan Gregurec (dragan-gregurec-h) wrote :

Thanks a lot ... I would like to help and FIX bugs and help in development in that great software... but now I am toooo busy.

Thanks again :)

Revision history for this message
ajay javiya (OpenERP) (aja-openerp) wrote :

For more reference i am archiving a video.
Thank You.

Revision history for this message
Xavier ALT (dex-phx) wrote :

Hi,

Fix landed on stable v7.0 branch with revision-id: <email address hidden>

Regards,
Xavier

Changed in openobject-server:
status: Fix Committed → Fix Released
Changed in openobject-server:
milestone: none → 7.0
Revision history for this message
ezariat.wael@gmail.com (ezariat-wael) wrote :

the comment you have mentionned don't work , i have the last stable version of openerp7 and still have the problem of adding custom fields

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.