← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 891987] [NEW] Intergrity error whhile installing hr_evaluation

 

Public bug reported:

trunk, web, chrome,

to test : install  HR Periodic Appraisals, from the main application
wizard

[2011-11-18 10:08:13,806][test] INFO:init.load:module hr_evaluation: loading hr_evaluation_data.xml
[2011-11-18 10:08:14,716][test] ERROR:db.cursor:bad query: insert into "resource_resource" (id,"active","time_efficiency","company_id","resource_type",create_uid,create_date) values (2,E'True',1.0,1,E'user',1,now())
Traceback (most recent call last):
  File "/home/aline/source/server/trunk/openerp/sql_db.py", line 215, in execute
    res = self._obj.execute(query, params)
IntegrityError: null value in column "name" violates not-null constraint

[2011-11-18 10:08:14,717][test] ERROR:tools.convert.xml_import:Parse error in /home/aline/source/addons/trunk/hr_evaluation/hr_evaluation_data.xml:1219: 
<record id="hr.employee1" model="hr.employee">
            <field name="evaluation_plan_id" ref="hr_evaluation_plan_managersevaluationplan0"/>
        </record>
Traceback (most recent call last):
  File "/home/aline/source/server/trunk/openerp/tools/convert.py", line 889, in parse
    self._tags[rec.tag](self.cr, rec, n)
  File "/home/aline/source/server/trunk/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 "/home/aline/source/server/trunk/openerp/addons/base/ir/ir_model.py", line 719, in _update
    res_id = model_obj.create(cr, uid, values, context=context)
  File "/home/aline/source/addons/trunk/hr_evaluation/hr_evaluation.py", line 135, in create
    id = super(hr_employee, self).create(cr, uid, vals, context=context)
  File "/home/aline/source/server/trunk/openerp/osv/orm.py", line 4002, in create
    record_id = self.pool.get(table).create(cr, user, tocreate[table], context=context)
  File "/home/aline/source/server/trunk/openerp/osv/orm.py", line 4060, in create
    cr.execute('insert into "'+self._table+'" (id'+upd0+") values ("+str(id_new)+upd1+')', tuple(upd2))
  File "/home/aline/source/server/trunk/openerp/sql_db.py", line 153, in wrapper
    return f(self, *args, **kwargs)
  File "/home/aline/source/server/trunk/openerp/sql_db.py", line 215, in execute
    res = self._obj.execute(query, params)
IntegrityError: null value in column "name" violates not-null constraint

** Affects: openerp-web
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to OpenERP Project Group.
https://bugs.launchpad.net/bugs/891987

Title:
  Intergrity error whhile installing hr_evaluation

Status in OpenERP Web:
  New

Bug description:
  trunk, web, chrome,

  to test : install  HR Periodic Appraisals, from the main application
  wizard

  [2011-11-18 10:08:13,806][test] INFO:init.load:module hr_evaluation: loading hr_evaluation_data.xml
  [2011-11-18 10:08:14,716][test] ERROR:db.cursor:bad query: insert into "resource_resource" (id,"active","time_efficiency","company_id","resource_type",create_uid,create_date) values (2,E'True',1.0,1,E'user',1,now())
  Traceback (most recent call last):
    File "/home/aline/source/server/trunk/openerp/sql_db.py", line 215, in execute
      res = self._obj.execute(query, params)
  IntegrityError: null value in column "name" violates not-null constraint

  [2011-11-18 10:08:14,717][test] ERROR:tools.convert.xml_import:Parse error in /home/aline/source/addons/trunk/hr_evaluation/hr_evaluation_data.xml:1219: 
  <record id="hr.employee1" model="hr.employee">
              <field name="evaluation_plan_id" ref="hr_evaluation_plan_managersevaluationplan0"/>
          </record>
  Traceback (most recent call last):
    File "/home/aline/source/server/trunk/openerp/tools/convert.py", line 889, in parse
      self._tags[rec.tag](self.cr, rec, n)
    File "/home/aline/source/server/trunk/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 "/home/aline/source/server/trunk/openerp/addons/base/ir/ir_model.py", line 719, in _update
      res_id = model_obj.create(cr, uid, values, context=context)
    File "/home/aline/source/addons/trunk/hr_evaluation/hr_evaluation.py", line 135, in create
      id = super(hr_employee, self).create(cr, uid, vals, context=context)
    File "/home/aline/source/server/trunk/openerp/osv/orm.py", line 4002, in create
      record_id = self.pool.get(table).create(cr, user, tocreate[table], context=context)
    File "/home/aline/source/server/trunk/openerp/osv/orm.py", line 4060, in create
      cr.execute('insert into "'+self._table+'" (id'+upd0+") values ("+str(id_new)+upd1+')', tuple(upd2))
    File "/home/aline/source/server/trunk/openerp/sql_db.py", line 153, in wrapper
      return f(self, *args, **kwargs)
    File "/home/aline/source/server/trunk/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/openerp-web/+bug/891987/+subscriptions


Follow ups

References