account_mass_reconcile: fix in python3 code conversion

This commit is contained in:
Jordi Ballester Alomar
2018-07-25 17:40:59 +02:00
committed by hveficent
parent 5d568b80b0
commit b205f4383e

View File

@@ -173,7 +173,7 @@ class MassReconcileAdvanced(models.AbstractModel):
opp_matchers = self._opposite_matchers(opposite_move_line)
for matcher in matchers:
try:
opp_matcher = opp_matchers.next()
opp_matcher = next(opp_matchers)
except StopIteration:
# if you fall here, you probably missed to put a `yield`
# in `_opposite_matchers()`