openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #24395
[Bug 1207752] [NEW] child_of crash on project.project
Public bug reported:
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>
** Affects: openobject-addons
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1207752
Title:
child_of crash on project.project
Status in OpenERP Addons (modules):
New
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>
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1207752/+subscriptions
Follow ups
References