hr_holiday hr_view.xml uses <id_inherit ... eval="False" which raises an error

Bug #296683 reported by Mathias Picker on 2008-11-11
Affects Status Importance Assigned to Milestone
Fix Released

Bug Description

Server reports: AssertionError: Wrong ID for the browse record, got False, expected an integer
(full report below)

I looked into hr_view.xml and found the following:

            <field name="inherit_id" eval="False"/>

I did not find any inherit_id with eval attribute in the other addons, so I'm ad a loss here.

full report of openerp-server (revno 1243, addons revno 1849, running on python 2.5 on freebsd 7.1-prerelease)

<record id="edit_holiday_inherit_new" model="ir.ui.view">
            <field name="name">hr.holidays.form.inherit</field>
            <field name="model">hr.holidays</field>
            <field name="type">form</field>
            <field eval="False" name="inherit_id"/>
            <field name="arch" type="xml">
                <form string="Employee holidays">
                    <field colspan="4" name="name" select="1"/>
                    <field name="date_from" select="1"/>
                    <field name="date_to" select="1"/>
                    <field name="holiday_status" select="1"/>
                    <group col="12" colspan="2">
                        <button name="confirm" states="draft" string="Confirm" type="workflow"/>
                        <button name="validate" states="confirm" string="Validate" type="workflow"/>
                        <button name="refuse" states="confirm" string="Refuse" type="workflow"/>
                        <button name="cancel" states="validate,refuse" string="Cancel" type="workflow"/>
                        <button name="set_to_draft" states="cancel" string="Set to Draft" type="object"/>
                    <field colspan="2" name="state" select="1"/>
                    <field col="12" colspan="4" name="notes"/>
                    <field colspan="2" name="manager_id"/>
                    <field name="employee_id" select="1"/>
                    <field colspan="2" name="number_of_days"/>
Traceback (most recent call last):
  File "./", line 134, in <module>
    pooler.get_db_and_pool(tools.config['db_name'], update_module=True)
  File "/usr/home/mathiasp/Developer/OpenErp/server/bin/", line 49, in get_db_and_pool
    addons.load_modules(db, force_demo, status, update_module)
  File "/usr/home/mathiasp/Developer/OpenErp/server/bin/", line 337, in load_modules

  File "/usr/home/mathiasp/Developer/OpenErp/server/bin/", line 265, in load_module_graph

  File "/usr/home/mathiasp/Developer/TinyERP/openerp/server/bin/tools/", line 845, in convert_xml_import
  File "/usr/home/mathiasp/Developer/TinyERP/openerp/server/bin/tools/", line 740, in parse
  File "/usr/home/mathiasp/Developer/TinyERP/openerp/server/bin/tools/", line 708, in _tag_record
  File "/usr/home/mathiasp/Developer/TinyERP/openerp/server/bin/addons/base/ir/", line 479, in _update
  File "/usr/home/mathiasp/Developer/TinyERP/openerp/server/bin/addons/base/ir/", line 78, in create
  File "/usr/home/mathiasp/Developer/TinyERP/openerp/server/bin/osv/", line 394, in browse
  File "/usr/home/mathiasp/Developer/TinyERP/openerp/server/bin/osv/", line 119, in __init__
AssertionError: Wrong ID for the browse record, got False, expected an integer.

revision 1847

Changed in openerp:
status: New → Fix Committed
Changed in openerp:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers