Merge lp:~unifield-team/unifield-wm/us-100 into lp:unifield-wm

Proposed by jftempo
Status: Merged
Merged at revision: 2397
Proposed branch: lp:~unifield-team/unifield-wm/us-100
Merge into: lp:unifield-wm
Diff against target: 21 lines (+11/-1)
1 file modified
account_override/account.py (+11/-1)
To merge this branch: bzr merge lp:~unifield-team/unifield-wm/us-100
Reviewer Review Type Date Requested Status
UniField Reviewer Team Pending
Review via email: mp+250345@code.launchpad.net
To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'account_override/account.py'
2--- account_override/account.py 2014-11-10 08:30:32 +0000
3+++ account_override/account.py 2015-02-19 16:31:37 +0000
4@@ -718,7 +718,17 @@
5 }
6 res = super(account_move, self).copy(cr, uid, a_id, vals, context=context)
7 for line in je.line_id:
8- self.pool.get('account.move.line').copy(cr, uid, line.id, {'move_id': res, 'document_date': je.document_date, 'date': je.date, 'period_id': je.period_id and je.period_id.id or False}, context)
9+ line_default = {
10+ 'move_id': res,
11+ 'document_date': je.document_date,
12+ 'date': je.date,
13+ 'period_id': je.period_id and je.period_id.id or False,
14+ 'reconcile_id': False,
15+ 'reconcile_partial_id': False,
16+ 'reconcile_txt': False,
17+ }
18+ self.pool.get('account.move.line').copy(cr, uid, line.id,
19+ line_default, context)
20 self.validate(cr, uid, [res], context=context)
21 return res
22

Subscribers

People subscribed via source and target branches