Merge lp:~openerp-dev/openobject-addons/7.0-opw-603400-ado into lp:openobject-addons/7.0

Proposed by Amit Dodiya (OpenERP)
Status: Needs review
Proposed branch: lp:~openerp-dev/openobject-addons/7.0-opw-603400-ado
Merge into: lp:openobject-addons/7.0
Diff against target: 10 lines (+1/-0)
1 file modified
analytic/analytic.py (+1/-0)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/7.0-opw-603400-ado
Reviewer Review Type Date Requested Status
Naresh(OpenERP) Pending
Review via email: mp+203279@code.launchpad.net

Description of the change

Hello,

[FIX] analytic: while duplicating the analytic account it also duplicates child and it's lines

Issue:
When duplicating an analytic account with children and analytic lines written on these child accounts also duplicates the child accounts as well as the associated analytic lines.

Regards,
Amit

To post a comment you must log in.

Unmerged revisions

9795. By Luc De Meyer (Noviat)

[FIX] analytic: while duplicating the analytic account it also duplicates child

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'analytic/analytic.py'
2--- analytic/analytic.py 2014-01-06 15:38:18 +0000
3+++ analytic/analytic.py 2014-01-27 07:30:22 +0000
4@@ -268,6 +268,7 @@
5 default.update(
6 code=False,
7 line_ids=[],
8+ child_ids=[],
9 name=_("%s (copy)") % (analytic['name']))
10 return super(account_analytic_account, self).copy(cr, uid, id, default, context=context)
11