← Back to team overview

openerp-india team mailing list archive

[Bug 1207752] Re: child_of crash on project.project

 

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

** Changed in: openobject-addons
       Status: Incomplete => Expired

-- 
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):
  Expired

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


References