← Back to team overview

openerp-india team mailing list archive

[Bug 1125832] Re: Adding a Field in product.product Form failed

 

Hello Sergio Altamirano ,

Would you please try with latest code this issue is fixed released :
lp:~openerp-dev/openobject-server/trunk-bug-1082003-aja at revision no 4630.

Thanks.


** Changed in: openobject-server
       Status: New => Fix Released

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Server.
https://bugs.launchpad.net/bugs/1125832

Title:
  Adding a Field in product.product Form failed

Status in OpenERP Server:
  Fix Released

Bug description:
  I´m working at Openerp 7.0 latest, installed on ubuntu 12.0.4 and when
  I try to add a Custom Field in product.prodcut Form I get the bellow
  error:


  
  OpenERP Server Error

  Client Traceback (most recent call last):
    File "/opt/openerp/server/openerp/addons/web/http.py", line 195, in dispatch
      response["result"] = method(self, **self.params)
    File "/opt/openerp/server/openerp/addons/web/controllers/main.py", line 1079, in call_kw
      return self._call_kw(req, model, method, args, kwargs)
    File "/opt/openerp/server/openerp/addons/web/controllers/main.py", line 1071, in _call_kw
      return getattr(req.session.model(model), method)(*args, **kwargs)
    File "/opt/openerp/server/openerp/addons/web/session.py", line 43, in proxy
      result = self.proxy.execute_kw(self.session._db, self.session._uid, self.session._password, self.model, method, args, kw)
    File "/opt/openerp/server/openerp/addons/web/session.py", line 31, in proxy_method
      result = self.session.send(self.service_name, method, *args)
    File "/opt/openerp/server/openerp/addons/web/session.py", line 104, in send
      raise xmlrpclib.Fault(openerp.tools.ustr(e), formatted_info)

  
  Server Traceback (most recent call last):
    File "/opt/openerp/server/openerp/addons/web/session.py", line 90, in send
      return openerp.netsvc.dispatch_rpc(service_name, method, args)
    File "/opt/openerp/server/openerp/netsvc.py", line 295, in dispatch_rpc
      result = ExportService.getService(service_name).dispatch(method, params)
    File "/opt/openerp/server/openerp/service/web_services.py", line 614, in dispatch
      res = fn(db, uid, *params)
    File "/opt/openerp/server/openerp/osv/osv.py", line 169, in execute_kw
      return self.execute(db, uid, obj, method, *args, **kw or {})
    File "/opt/openerp/server/openerp/osv/osv.py", line 123, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/opt/openerp/server/openerp/osv/osv.py", line 179, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/opt/openerp/server/openerp/addons/audittrail/audittrail.py", line 514, in execute_cr
      return fct_src(cr, uid, model, method, *args, **kw)
    File "/opt/openerp/server/openerp/osv/osv.py", line 166, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File "/opt/openerp/server/openerp/addons/base/ir/ir_model.py", line 182, in write
      return super(ir_model,self).write(cr, user, ids, vals, context)
    File "/opt/openerp/server/openerp/osv/orm.py", line 4180, in write
      result += self._columns[field].set(cr, self, id, field, vals[field], user, context=rel_context) or []
    File "/opt/openerp/server/openerp/osv/fields.py", line 557, in set
      id_new = obj.create(cr, user, act[2], context=context)
    File "/opt/openerp/server/openerp/addons/base/ir/ir_model.py", line 345, in create
      self.pool.get(vals['model']).__init__(self.pool, cr)
    File "/opt/openerp/server/openerp/osv/orm.py", line 1080, 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 product.product

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/1125832/+subscriptions


Follow ups

References