From a2256fffb84908966b122ac938638ae714ce6894 Mon Sep 17 00:00:00 2001 From: Xavier-Do Date: Fri, 17 Jan 2020 11:38:16 +0100 Subject: [PATCH] [FIX] runbot: don't detect duplicate on rebuild. --- runbot/models/build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runbot/models/build.py b/runbot/models/build.py index 2a704ba0..7e964fc7 100644 --- a/runbot/models/build.py +++ b/runbot/models/build.py @@ -240,7 +240,7 @@ class runbot_build(models.Model): for dep_vals in dep_create_vals: self.env['runbot.build.dependency'].sudo().create(dep_vals) - if not context.get('force_rebuild'): # not vals.get('build_type') == rebuild': could be enough, but some cron on runbot are using this ctx key, to do later + if not context.get('force_rebuild') and not vals.get('build_type') == 'rebuild': # detect duplicate duplicate_id = None domain = [