~unifield-team/unifield-wm/us-826

« back to all changes in this revision

Viewing changes to analytic_distribution/wizard/mass_reallocation_wizard.py

  • Committer: jf
  • Date: 2016-02-08 16:40:08 UTC
  • mfrom: (2753.1.7 unifield-wm)
  • Revision ID: jfb@tempo-consulting.fr-20160208164008-426e001so4e9xoip
US-871 [FIX] Mass Realloc: add COR prefix in AJI, use entry_sequence as ref. in COR and REV AJIs
US-871 [FIX] Single AJI manually corrected, COR AJI can't be mass rallocated
lp:~jfb-tempo-consulting/unifield-wm/us-871

Show diffs side-by-side

added added

removed removed

Lines of Context:
108
108
                    for line in lines[distrib_id]:
109
109
                        # Update distribution
110
110
                        self.pool.get('analytic.distribution').update_distribution_line_account(cr, uid, line.distrib_line_id.id, account_id, context=context)
111
 
                        # Then update analytic line
112
 
                        self.pool.get('account.analytic.line').update_account(cr, uid, [x.id for x in lines[distrib_id]], account_id, wiz.date, context=context)
 
111
                    # Then update analytic line
 
112
                    self.pool.get('account.analytic.line').update_account(cr, uid, [x.id for x in lines[distrib_id]], account_id, wiz.date, context=context)
113
113
            cr.commit()
114
114
        finally:
115
115
            values = {'process_in_progress': False}