[FIX] project_long_term: avoid bad duplication of phases
authorMartin Trigaux <mat@openerp.com>
Wed, 30 Jul 2014 13:27:58 +0000 (15:27 +0200)
committerMartin Trigaux <mat@openerp.com>
Wed, 30 Jul 2014 14:12:22 +0000 (16:12 +0200)
commitfaa0df809fdbaa083e0562739ec045820a0b26e2
treed42b6771ae459e819db134dcd65c9c03caa75373
parent8f0392b49099eaca6f4c5cdd0931da0821d73865
[FIX] project_long_term: avoid bad duplication of phases

When we duplicate a project, the related phases need to be duplicated as well but keeping references between each other.
e.g. 'project 1' with 'phase A' follwed by 'phase B' should become 'project 1 (copy)' with 'phase A (copy)' followed by 'phase B (copy)'.
Fixing bug lp:1212860, opw 607062
addons/project_long_term/project_long_term.py