child_of crash on project.project

Bug #1207752 reported by Smile ERP
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Invalid
Undecided
Unassigned

Bug Description

Install a new database with module project.

Create a new project: it will get id=1.
Then perform a search on 'project.task' with domain [('project_id', 'child_of', [1])].
It will crash with RuntimeError: maximum recursion depth exceeded
mainly on :
  File "server/openerp/osv/expression.py", line 724, in recursive_children
    return ids + recursive_children(ids2, model, parent_field)

Which make these 2 records from project/project_view.xml quite irrelevant:

        <!-- Opening task when double clicking on project -->
        <record id="dblc_proj" model="ir.actions.act_window">
            <field name="res_model">project.task</field>
            <field name="name">Project's tasks</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree,form,calendar,graph,gantt,kanban</field>
            <field name="domain">[('project_id', 'child_of', [active_id])]</field>
            <field name="context">{'project_id':active_id, 'active_test':False}</field>
        </record>

        <record id="ir_project_task_open" model="ir.values">
            <field eval="'tree_but_open'" name="key2"/>
            <field eval="'project.project'" name="model"/>
            <field name="name">View project's tasks</field>
            <field eval="'ir.actions.act_window,'+str(dblc_proj)" name="value"/>
        </record>

Revision history for this message
Amit Parik (amit-parik) wrote :

Hello,

From where you have search with domain [('project_id', 'child_of', [1])] on project.task.
Not clearly get you please elaborate more.

Thank you!

Changed in openobject-addons:
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for OpenERP Addons because there has been no activity for 60 days.]

Changed in openobject-addons:
status: Incomplete → Expired
Changed in openobject-addons:
status: Expired → Invalid
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.