Installing hr_timesheet after deleting of Administraton employee fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Confirmed
|
Medium
|
OpenERP R&D Addons Team 3 |
Bug Description
Installation of hr_timesheet fails because Administration employee is supposed to be updated by a journal_id only.
But if that employee does not exist, ystem attempts to create it but without a "name" field value and it's a constraint error.
hr_timesheet/
<record id="hr.employee" model="
<field name="journal_id" ref="analytic_
</record>
There is no record for matching the id: hr.employee (Administrator employee).
This update should check somehow if that reference id is present and thend proceed or just update all required fields (like name).
A technical explanation:
2013-04-03 07:54:02,646 19255 ERROR aa_db openerp.sql_db: bad query: insert into "resource_resource" (id,"active"
Traceback (most recent call last):
File "/erp/41/
res = self._obj.
IntegrityError: null value in column "name" violates not-null constraint
2013-04-03 07:54:02,647 19255 ERROR aa_db openerp.
<record id="hr.employee" model="
<field name="journal_id" ref="analytic_
</record>
tags: | added: v7.0 |
Changed in openobject-addons: | |
assignee: | nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3) |
importance: | Undecided → Medium |
status: | New → Confirmed |
tags: |
added: hr timesheet removed: v7.0 |
I am having issue when I install it hr_timesheet in my old database. with Postgresql 9.2. It doesn't affect at all when I create a new database and install hr_timesheet module