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
--
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):
Incomplete
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
_______________________________________________
Mailing list: https://launchpad.net/~openerp-india
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-india
More help : https://help.launchpad.net/ListHelp