← Back to team overview

openerp-india team mailing list archive

[Bug 908073] [NEW] IntegrityError: null value in column "name" violates not-null constraint

 

Public bug reported:

 ERROR:db.cursor:bad query: insert into "ir_module_module" (id,"license","sequence","demo","state","application","complexity",create_uid,create_date) values (247,E'AGPL-3',10,E'False',E'uninstalled',E'False',E'normal',1,now())
Traceback (most recent call last):
  File "/srv/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

ERROR:tools.convert.xml_import:Parse error in /srv/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 "/srv/openerp/server/openerp/tools/convert.py", line 889, in parse
    self._tags[rec.tag](self.cr, rec, n)
  File "/srv/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 "/srv/openerp/server/openerp/addons/base/ir/ir_model.py", line 732, in _update
    res_id = model_obj.create(cr, uid, values, context=context)
  File "/srv/openerp/server/openerp/osv/orm.py", line 4134, in create
    cr.execute('insert into "'+self._table+'" (id'+upd0+") values ("+str(id_new)+upd1+')', tuple(upd2))
  File "/srv/openerp/server/openerp/sql_db.py", line 153, in wrapper
    return f(self, *args, **kwargs)
  File "/srv/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

I don't get the error if I blank out the 'base_module_meta.xml' in
__openerp__.py

** Affects: openobject-server
     Importance: Undecided
         Status: New

-- 
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/908073

Title:
  IntegrityError: null value in column "name" violates not-null
  constraint

Status in OpenERP Server:
  New

Bug description:
   ERROR:db.cursor:bad query: insert into "ir_module_module" (id,"license","sequence","demo","state","application","complexity",create_uid,create_date) values (247,E'AGPL-3',10,E'False',E'uninstalled',E'False',E'normal',1,now())
  Traceback (most recent call last):
    File "/srv/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

  ERROR:tools.convert.xml_import:Parse error in /srv/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 "/srv/openerp/server/openerp/tools/convert.py", line 889, in parse
      self._tags[rec.tag](self.cr, rec, n)
    File "/srv/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 "/srv/openerp/server/openerp/addons/base/ir/ir_model.py", line 732, in _update
      res_id = model_obj.create(cr, uid, values, context=context)
    File "/srv/openerp/server/openerp/osv/orm.py", line 4134, in create
      cr.execute('insert into "'+self._table+'" (id'+upd0+") values ("+str(id_new)+upd1+')', tuple(upd2))
    File "/srv/openerp/server/openerp/sql_db.py", line 153, in wrapper
      return f(self, *args, **kwargs)
    File "/srv/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

  I don't get the error if I blank out the 'base_module_meta.xml' in
  __openerp__.py

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


Follow ups

References