← Back to team overview

openerp-india team mailing list archive

[Bug 911527] Re: null value in column name violates constraint ir_module_module

 

*** This bug is a duplicate of bug 906362 ***
    https://bugs.launchpad.net/bugs/906362

** This bug has been marked a duplicate of bug 906362
   [6.1/trunk] regression in module loading since around rev #3887:  "name" violates not-null constraint

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

Title:
  null value in column name violates constraint ir_module_module

Status in OpenERP Addons (modules):
  Incomplete

Bug description:
  [2012-01-04 00:05:52,166][?] INFO:wsgi:HTTP service (wsgiref) running on 0.0.0.0:8069
  [2012-01-04 00:05:52,216][staging] INFO:init.load:module base: loading objects
  [2012-01-04 00:05:52,218][staging] INFO:init:module base: registering objects
  [2012-01-04 00:05:52,621][staging] INFO:init:module base: creating or updating database tables
  [2012-01-04 00:06:11,184][staging] INFO:init.load:module base: loading base_data.xml
  [2012-01-04 00:06:11,823][staging] INFO:init.load:module base: loading security/base_security.xml
  [2012-01-04 00:06:11,936][staging] INFO:init.load:module base: loading base_menu.xml
  [2012-01-04 00:06:12,084][staging] INFO:init.load:module base: loading base_module_meta.xml
  [2012-01-04 00:06:12,092][staging] ERROR:db.cursor:bad query: insert into "ir_module_module" (id,"license","sequence","demo","state","application","complexity",create_uid,create_date) values (195,E'AGPL-3',10,E'False',E'uninstalled',E'False',E'normal',1,now())
  Traceback (most recent call last):
    File "/usr/local/openerp/6.1/openerp-server/openerp/sql_db.py", line 215, in execute
      res = self._obj.execute(query, params)
  IntegrityError: null value in column "name" violates not-null constraint

  [2012-01-04 00:06:12,093][staging] ERROR:tools.convert.xml_import:Parse error in /usr/local/openerp/6.1/openerp-server/openerp/addons/base/base_module_meta.xml:5: 
  <record id="base.module_account_accountant" model="ir.module.module">
              <field name="sequence">10</field>
          </record>
  Traceback (most recent call last):
    File "/usr/local/openerp/6.1/openerp-server/openerp/tools/convert.py", line 889, in parse
      self._tags[rec.tag](self.cr, rec, n)
    File "/usr/local/openerp/6.1/openerp-server/openerp/tools/convert.py", line 856, in _tag_record
      id = self.pool.get('ir.model.data')._update(cr, self.uid, rec_model, self.module, res, rec_id or False, not self.isnoupdate(data_node), noupdate=self.isnoupdate(data_node), mode=self.mode, context=rec_context )
    File "/usr/local/openerp/6.1/openerp-server/openerp/addons/base/ir/ir_model.py", line 732, in _update
      res_id = model_obj.create(cr, uid, values, context=context)
    File "/usr/local/openerp/6.1/openerp-server/openerp/osv/orm.py", line 4139, in create
      cr.execute('insert into "'+self._table+'" (id'+upd0+") values ("+str(id_new)+upd1+')', tuple(upd2))
    File "/usr/local/openerp/6.1/openerp-server/openerp/sql_db.py", line 153, in wrapper
      return f(self, *args, **kwargs)
    File "/usr/local/openerp/6.1/openerp-server/openerp/sql_db.py", line 215, in execute
      res = self._obj.execute(query, params)
  IntegrityError: null value in column "name" violates not-null constraint

  [2012-01-04 00:06:12,098][staging] ERROR:root:Failed to initialize database `staging`.
  Traceback (most recent call last):
    File "openerp-server", line 92, in preload_registry
      db, registry = openerp.pooler.get_db_and_pool(dbname, update_module=config['init'] or config['update'], pooljobs=False)
    File "/usr/local/openerp/6.1/openerp-server/openerp/pooler.py", line 33, in get_db_and_pool
      registry = RegistryManager.get(db_name, force_demo, status, update_module, pooljobs)
    File "/usr/local/openerp/6.1/openerp-server/openerp/modules/registry.py", line 138, in get
      update_module, pooljobs)
    File "/usr/local/openerp/6.1/openerp-server/openerp/modules/registry.py", line 160, in new
      openerp.modules.load_modules(registry.db, force_demo, status, update_module)
    File "/usr/local/openerp/6.1/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 "/usr/local/openerp/6.1/openerp-server/openerp/modules/loading.py", line 192, in load_module_graph
      load_init_xml(module_name, idref, mode)
    File "/usr/local/openerp/6.1/openerp-server/openerp/modules/loading.py", line 91, in <lambda>
      load_init_xml = lambda *args: _load_data(cr, *args, kind='init_xml')
    File "/usr/local/openerp/6.1/openerp-server/openerp/modules/loading.py", line 140, in _load_data
      tools.convert_xml_import(cr, module_name, fp, idref, mode, noupdate, report)
    File "/usr/local/openerp/6.1/openerp-server/openerp/tools/convert.py", line 999, in convert_xml_import
      obj.parse(doc.getroot())
    File "/usr/local/openerp/6.1/openerp-server/openerp/tools/convert.py", line 889, in parse
      self._tags[rec.tag](self.cr, rec, n)
    File "/usr/local/openerp/6.1/openerp-server/openerp/tools/convert.py", line 856, in _tag_record
      id = self.pool.get('ir.model.data')._update(cr, self.uid, rec_model, self.module, res, rec_id or False, not self.isnoupdate(data_node), noupdate=self.isnoupdate(data_node), mode=self.mode, context=rec_context )
    File "/usr/local/openerp/6.1/openerp-server/openerp/addons/base/ir/ir_model.py", line 732, in _update
      res_id = model_obj.create(cr, uid, values, context=context)
    File "/usr/local/openerp/6.1/openerp-server/openerp/osv/orm.py", line 4139, in create
      cr.execute('insert into "'+self._table+'" (id'+upd0+") values ("+str(id_new)+upd1+')', tuple(upd2))
    File "/usr/local/openerp/6.1/openerp-server/openerp/sql_db.py", line 153, in wrapper
      return f(self, *args, **kwargs)
    File "/usr/local/openerp/6.1/openerp-server/openerp/sql_db.py", line 215, in execute
      res = self._obj.execute(query, params)
  IntegrityError: null value in column "name" violates not-null constraint

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


References