Commits

kantntreiber  committed 45b068a

Limit search in .get_next_level()

  • Participants
  • Parent commits 713a177

Comments (0)

Files changed (1)

             ids = self.search([
                     ('procedure', '=', level.procedure.id),
                     ('days', '>', level.days),
-                    ], order=[('days', 'ASC')])
+                    ], order=[('days', 'ASC')], limit=1)
             if ids:
                 res[level.id] = ids[0]
             else: