Merge lp:~unifield-team/unifield-server/us1044-regline-cashreturn into lp:unifield-server

Proposed by jftempo
Status: Merged
Merged at revision: 3722
Proposed branch: lp:~unifield-team/unifield-server/us1044-regline-cashreturn
Merge into: lp:unifield-server
Diff against target: 12 lines (+1/-1)
1 file modified
bin/addons/account_corrections/account_move_line.py (+1/-1)
To merge this branch: bzr merge lp:~unifield-team/unifield-server/us1044-regline-cashreturn
Reviewer Review Type Date Requested Status
UniField Reviewer Team Pending
Review via email: mp+292760@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 'bin/addons/account_corrections/account_move_line.py'
2--- bin/addons/account_corrections/account_move_line.py 2016-01-12 13:07:05 +0000
3+++ bin/addons/account_corrections/account_move_line.py 2016-04-25 07:54:02 +0000
4@@ -632,7 +632,7 @@
5 # we informs new move line that it have correct a statement line
6 self.write(cr, uid, corrected_line_ids, {'corrected_st_line_id': st_line.id}, context=context)
7 break
8- else:
9+ elif not st_line.from_cash_return: #US-1044: only update the account on line if the regline is not cash return!
10 #US-303: If not the case, then we inform the new move line that it has corrected a statement line
11 absl_obj.write(cr, uid, [st_line.id], {'account_id': account_id}, context=context)
12 self.write(cr, uid, corrected_line_ids, {'corrected_st_line_id': st_line.id}, context=context)

Subscribers

People subscribed via source and target branches

to all changes: