Intergrity error whhile installing hr_evaluation

Bug #891987 reported by Aline (OpenERP)
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
High
OpenERP R&D Addons Team 3

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

Related branches

Revision history for this message
Aline (OpenERP) (apr-tinyerp) wrote :

try by installing only hr evaluation and by installing lot of features because, with the same update, i have been able to install this module in a full db but not able to install only this feature ...

Changed in openerp-web:
importance: Undecided → Medium
Revision history for this message
Vishal Parmar(Open ERP) (vpa-openerp) wrote :

Hello Aline,

I have checked your issue with updated code of trunk as per your specification in your issue but at my end
it's successfully installed. web revno = 1508. Would you please checked again and informed us still you have
faced the same problem.

Thanks and waiting for your reply.

Changed in openerp-web:
status: New → Incomplete
Revision history for this message
Aline (OpenERP) (apr-tinyerp) wrote :

1/ create a new db without demo data
2/ Install hr from the first home page
3/ add more features and install only "Periodic appraisal"
4/ bug:

Integrity Error

The operation cannot be completed, probably due to the following:
- deletion: you may be trying to delete a record while other records still reference it
- creation/update: a mandatory field is not correctly set

[object with reference: name - name]

affects: openerp-web → openobject-addons
Changed in openobject-addons:
importance: Medium → High
Revision history for this message
Vishal Parmar(Open ERP) (vpa-openerp) wrote :

Hello,

Thanks For your reply.

I have applied same scenario as per #3 and faced the same problem at my end. See attached screenshot.

Thanks.

Revision history for this message
Vishal Parmar(Open ERP) (vpa-openerp) wrote :
Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3)
status: Incomplete → Confirmed
Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
DJ Patel (OpenERP) (mdi-openerp) wrote :

Hello Aline,

Thanks for reporting. The solution for this bug is proposed in the branch : https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-891987-mdi/

with following Revision ID and Number.

Revision ID : <email address hidden>
Revision Number : 5752

Thanks and Regards,

Divyesh Makwana(MDI)

Changed in openobject-addons:
status: In Progress → Fix Committed
Revision history for this message
qdp (OpenERP) (qdp) wrote :

the fix landed on trunk in revision 5758

Changed in openobject-addons:
status: Fix Committed → Fix Released
Changed in openobject-addons:
milestone: none → 6.1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.