[trunk/7.0] hr_timesheet/hr_timesheet_data.xml: Record without name data

Bug #1312152 reported by conexus - s.petersen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
New
Undecided
Unassigned

Bug Description

Hello,

hr_timesheet_data.xml contains:

        <record id="analytic_journal" model="account.analytic.journal">
            <field name="code">TS</field>
            <field name="name">Timesheet Journal</field>
            <field name="type">general</field>
        </record>

        <record id="hr.employee" model="hr.employee">
            <field name="journal_id" ref="analytic_journal"/>
        </record>

The hr.employee Record has no name value.
On a fresh DB that doesn't seem to matter during the installation, however in an existing DB when attempting to install the hr_timesheet module the following error occurs:

2014-04-24 09:15:54,402 9586 INFO odb701 openerp.modules.loading: module hr_timesheet: loading hr_timesheet_data.xml
2014-04-24 09:15:54,468 9586 ERROR odb701 openerp.sql_db: bad query: insert into "resource_resource" (id,"active","time_efficiency","company_id","resource_type",create_uid,create_date,write_uid,write_date) values (106,'True',1.0,1,'user',1,(now() at time zone 'UTC'),1,(now() at time zone 'UTC'))
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/openerp/sql_db.py", line 226, in execute
    res = self._obj.execute(query, params)
IntegrityError: null value in column "name" violates not-null constraint

I would like to know if the hr.employee record can't be simply removed from this file or what's the reason of having it?

with kind regards,
Sven

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.