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 Miquel Raïch
parent 5184965a47
commit 639a3c6e87

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()`