← Back to team overview

credativ team mailing list archive

[Bug 908069] Re: KeyError: 'serialization_field_id'

 

Hello,

This is because a new field has been added to the ir.model.fields table in trunk. But because this table is at the very heart of the system, its columns are being accessed even during the time it takes to update its structure (when starting with -u all).
Therefore this requires a manual migration step, in the form of a quick SQL update when upgrading an existing trunk database:

  ALTER TABLE ir_model_fields ADD column serialization_field_id int
references ir_model_fields on delete cascade;

I'll see if there's a way to avoid this manual step, but otherwise we
can simply consider this a necessary migration step.

Thanks for reporting and for your understanding!

** Changed in: openobject-server
       Status: Incomplete => Invalid

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

Title:
  KeyError: 'serialization_field_id'

Status in OpenERP Server:
  Invalid

Bug description:
  Server Traceback (most recent call last):
    File "/srv/openerp/server/openerp/wsgi.py", line 77, in xmlrpc_return
      result = openerp.netsvc.dispatch_rpc(service, method, params)
    File "/srv/openerp/server/openerp/netsvc.py", line 325, in dispatch_rpc
      result = ExportService.getService(service_name).dispatch(method, params)
    File "/srv/openerp/server/openerp/service/web_services.py", line 387, in dispatch
      return fn(*params)
    File "/srv/openerp/server/openerp/service/web_services.py", line 398, in exp_authenticate
      res_users = pooler.get_pool(db).get('res.users')
    File "/srv/openerp/server/openerp/pooler.py", line 50, in get_pool
      return get_db_and_pool(db_name, force_demo, status, update_module)[1]
    File "/srv/openerp/server/openerp/pooler.py", line 33, in get_db_and_pool
      registry = RegistryManager.get(db_name, force_demo, status, update_module, pooljobs)
    File "/srv/openerp/server/openerp/modules/registry.py", line 138, in get
      update_module, pooljobs)
    File "/srv/openerp/server/openerp/modules/registry.py", line 160, in new
      openerp.modules.load_modules(registry.db, force_demo, status, update_module)
    File "/srv/openerp/server/openerp/modules/loading.py", line 299, in load_modules
      loaded_modules, processed_modules = load_module_graph(cr, graph, status, perform_checks=(not update_module), report=report)
    File "/srv/openerp/server/openerp/modules/loading.py", line 171, in load_module_graph
      init_module_models(cr, package.name, models)
    File "/srv/openerp/server/openerp/modules/module.py", line 287, in init_module_models
      result = obj._auto_init(cr, {'module': module_name})
    File "/srv/openerp/server/openerp/osv/orm.py", line 2747, in _auto_init
      self._field_create(cr, context=context)
    File "/srv/openerp/server/openerp/osv/orm.py", line 817, in _field_create
      if cols[k][key] != vals[key]:
  KeyError: 'serialization_field_id'

  
  OpenERP Server 6.1

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


References