Merge lp:~julie-w/unifield-server/US-3256 into lp:unifield-server

Proposed by jftempo
Status: Merged
Merged at revision: 4508
Proposed branch: lp:~julie-w/unifield-server/US-3256
Merge into: lp:unifield-server
Diff against target: 32 lines (+7/-15)
1 file modified
bin/addons/account_corrections/wizard/analytic_distribution_wizard.py (+7/-15)
To merge this branch: bzr merge lp:~julie-w/unifield-server/US-3256
Reviewer Review Type Date Requested Status
UniField Reviewer Team Pending
Review via email: mp+330566@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/wizard/analytic_distribution_wizard.py'
2--- bin/addons/account_corrections/wizard/analytic_distribution_wizard.py 2017-02-24 16:30:52 +0000
3+++ bin/addons/account_corrections/wizard/analytic_distribution_wizard.py 2017-09-12 07:45:49 +0000
4@@ -432,21 +432,13 @@
5 'amount': amount,
6 }
7
8- # UFTP-169: Use the correction line date in case we are correcting a line that is a correction of another line.
9- if ml.corrected_line_id:
10- vals.update({
11- 'date': ml.date,
12- 'source_date': orig_date,
13- 'document_date': orig_document_date,
14- })
15- else:
16- # get the actual AJI date (can differ from the ML orig_date if an AD correction has already been made)
17- aal_date = ana_obj.browse(cr, uid, to_override_ids[0], fields_to_fetch=['date'], context=context).date
18- # original dates are kept but we add them in vals to trigger the check on dates with the new AD
19- vals.update({
20- 'date': aal_date,
21- 'document_date': orig_document_date,
22- })
23+ # get the actual AJI date (can differ from the ML orig_date if an AD correction has already been made)
24+ aal_date = ana_obj.browse(cr, uid, to_override_ids[0], fields_to_fetch=['date'], context=context).date
25+ # original dates are kept but we add them in vals to trigger the check on dates with the new AD
26+ vals.update({
27+ 'date': aal_date,
28+ 'document_date': orig_document_date,
29+ })
30 self.pool.get('account.analytic.line').write(cr, uid, to_override_ids, vals)
31 # update the distib line
32 self.pool.get('funding.pool.distribution.line').write(cr, uid, [line.distribution_line_id.id], {

Subscribers

People subscribed via source and target branches