From b98568709ffa31e4d3d0422e52cf4a64eaa8f3e1 Mon Sep 17 00:00:00 2001 From: Martin Trigaux Date: Tue, 5 May 2015 13:06:02 +0200 Subject: [PATCH] [FIX] runbot: find build to be skipped search should be made on runbot.build and not runbot.repo object --- runbot/runbot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runbot/runbot.py b/runbot/runbot.py index 6c53bfe9..c63b6f3a 100644 --- a/runbot/runbot.py +++ b/runbot/runbot.py @@ -303,8 +303,8 @@ class runbot_repo(osv.osv): } if not branch.sticky: - skipped_build_sequences = self.search_read(cr, uid, [('branch_id', '=', branch.id), ('state', '=', 'pending')], - fields=['sequence'], order='sequence asc', context=context) + skipped_build_sequences = Build.search_read(cr, uid, [('branch_id', '=', branch.id), ('state', '=', 'pending')], + fields=['sequence'], order='sequence asc', context=context) if skipped_build_sequences: to_be_skipped_ids = [build['id'] for build in skipped_build_sequences] Build.skip(cr, uid, to_be_skipped_ids, context=context)