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
=== modified file 'bin/addons/account_corrections/wizard/analytic_distribution_wizard.py'
--- bin/addons/account_corrections/wizard/analytic_distribution_wizard.py 2017-02-24 16:30:52 +0000
+++ bin/addons/account_corrections/wizard/analytic_distribution_wizard.py 2017-09-12 07:45:49 +0000
@@ -432,21 +432,13 @@
432 'amount': amount,432 'amount': amount,
433 }433 }
434434
435 # UFTP-169: Use the correction line date in case we are correcting a line that is a correction of another line.435 # get the actual AJI date (can differ from the ML orig_date if an AD correction has already been made)
436 if ml.corrected_line_id:436 aal_date = ana_obj.browse(cr, uid, to_override_ids[0], fields_to_fetch=['date'], context=context).date
437 vals.update({437 # original dates are kept but we add them in vals to trigger the check on dates with the new AD
438 'date': ml.date,438 vals.update({
439 'source_date': orig_date,439 'date': aal_date,
440 'document_date': orig_document_date,440 'document_date': orig_document_date,
441 })441 })
442 else:
443 # get the actual AJI date (can differ from the ML orig_date if an AD correction has already been made)
444 aal_date = ana_obj.browse(cr, uid, to_override_ids[0], fields_to_fetch=['date'], context=context).date
445 # original dates are kept but we add them in vals to trigger the check on dates with the new AD
446 vals.update({
447 'date': aal_date,
448 'document_date': orig_document_date,
449 })
450 self.pool.get('account.analytic.line').write(cr, uid, to_override_ids, vals)442 self.pool.get('account.analytic.line').write(cr, uid, to_override_ids, vals)
451 # update the distib line443 # update the distib line
452 self.pool.get('funding.pool.distribution.line').write(cr, uid, [line.distribution_line_id.id], {444 self.pool.get('funding.pool.distribution.line').write(cr, uid, [line.distribution_line_id.id], {

Subscribers

People subscribed via source and target branches