[project] task relations (child, parent) are not copied correctly in project copy or create from template

Bug #878638 reported by Jordi Ballester (www.avangard-eis.com)
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Low
OpenERP R&D Addons Team 1

Bug Description

Hello,

When we define a project, we create a number of tasks, some of which are related between themselves using the parent_id and child_id attributes (delegated tasks, parent tasks). When copying a project, the tasks in the new project relate to the old project's tasks, not to the new.

We also found that when creating a project from a template project that has tasks with relationships, these tasks relations are lost in the new project.

For example project 1 has:
task A
task B

Task B has parent_id Task A

I then copy "project 1" to "project 2". The following tasks are created
Task C --- copy of task A
Task D --- copy of task B

The relations are now:
Task D has parent_id Task A --- it should have parent_id Task C!

Kind regards,
Jordi Ballester
<email address hidden>
www.avangard-eis.com

Related branches

Revision history for this message
Jignesh Rathod(OpenERP) (jir-openerp) wrote :
Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 1 (openerp-dev-addons1)
importance: Undecided → Low
status: New → Confirmed
Changed in openobject-addons:
status: Confirmed → Fix Committed
status: Fix Committed → Confirmed
Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
Kuldeep Joshi(OpenERP) (kjo-openerp) wrote :

Hello, Thanks For Reporting.
It has been Fixed in https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-878638-kjo
revision-id: <email address hidden>
revno: 5486
It will be available in trunk soon.

Changed in openobject-addons:
status: In Progress → Fix Committed
Revision history for this message
Fabien (Open ERP) (fp-tinyerp) wrote :

the implementation of the patch was not good, I set it as InProgress.

Changed in openobject-addons:
status: Fix Committed → In Progress
Revision history for this message
Kuldeep Joshi(OpenERP) (kjo-openerp) wrote :

Hello Sir,

launchpad not display the updated code in https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-878638-kjo , So updated code in https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-878638-new-kjo
revision-id: <email address hidden>
revno: 6083

So, kindly review it.
Thanks.

Changed in openobject-addons:
status: In Progress → Fix Committed
Revision history for this message
Thibault Delavallée (OpenERP) (tde-openerp) wrote :

Fix landed in trunk.
revno: 6592
revision-id: <email address hidden>

Changed in openobject-addons:
status: Fix Committed → Fix Released
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.