~julie-w/unifield-wm/UTP-758

« back to all changes in this revision

Viewing changes to res_currency_functional/account_move_compute_currency.py

  • Committer: jf
  • Date: 2016-01-25 14:14:07 UTC
  • mfrom: (2703.20.59 unifield-wm)
  • Revision ID: jfb@tempo-consulting.fr-20160125141407-vgfz8lrdvvgq0zip
US-822 [IMP] Year End Closure functionnality
lp:~unifield-team/unifield-wm/us-822

Show diffs side-by-side

added added

removed removed

Lines of Context:
167
167
                amount += line.debit - line.credit
168
168
                amount_currency += line.amount_currency
169
169
            
170
 
            if len(sorted_line_ids) > 2:
 
170
            if move.period_id and not move.period_id.is_system \
 
171
                and len(sorted_line_ids) > 2:
171
172
                if abs(amount_currency) > 10 ** -4 and abs(amount) < 10 ** -4:
172
173
                    # The move is balanced, but there is a difference in the converted amounts;
173
174
                    # the second-biggest move line is modified accordingly