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

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

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"/>
                    <newline/>
                    <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"/>
                    </group>
                    <field colspan="2" name="state" select="1"/>
                    <newline/>
                    <field col="12" colspan="4" name="notes"/>
                    <newline/>
                    <field colspan="2" name="manager_id"/>
                    <field name="employee_id" select="1"/>
                    <newline/>
                    <field colspan="2" name="number_of_days"/>
                </form>
            </field>
        </record>
Traceback (most recent call last):
  File "./openerp-server.py", line 134, in <module>
    pooler.get_db_and_pool(tools.config['db_name'], update_module=True)
  File "/usr/home/mathiasp/Developer/OpenErp/server/bin/pooler.py", line 49, in get_db_and_pool
    addons.load_modules(db, force_demo, status, update_module)
  File "/usr/home/mathiasp/Developer/OpenErp/server/bin/__init__.py", line 337, in load_modules

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

  File "/usr/home/mathiasp/Developer/TinyERP/openerp/server/bin/tools/convert.py", line 845, in convert_xml_import
  File "/usr/home/mathiasp/Developer/TinyERP/openerp/server/bin/tools/convert.py", line 740, in parse
  File "/usr/home/mathiasp/Developer/TinyERP/openerp/server/bin/tools/convert.py", line 708, in _tag_record
  File "/usr/home/mathiasp/Developer/TinyERP/openerp/server/bin/addons/base/ir/ir_model.py", line 479, in _update
  File "/usr/home/mathiasp/Developer/TinyERP/openerp/server/bin/addons/base/ir/ir_ui_view.py", line 78, in create
  File "/usr/home/mathiasp/Developer/TinyERP/openerp/server/bin/osv/orm.py", line 394, in browse
  File "/usr/home/mathiasp/Developer/TinyERP/openerp/server/bin/osv/orm.py", 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