From e893d20abbc1dff502c17d2a19d71580eb25bd20 Mon Sep 17 00:00:00 2001 From: Nicolas Bessi Date: Mon, 28 Apr 2014 13:20:24 +0200 Subject: [PATCH] [FIX] key in domain. By hazard test where green but it was because level (field) and level_id where the same --- account_credit_control/line.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account_credit_control/line.py b/account_credit_control/line.py index e2c63cf78..09437620e 100644 --- a/account_credit_control/line.py +++ b/account_credit_control/line.py @@ -202,7 +202,7 @@ class CreditControlLine(orm.Model): previous_draft_ids = self.search( cr, uid, [('move_line_id', '=', line.id), - ('level', '=', level.id), + ('policy_level_id', '=', level.id), ('state', '=', 'draft'), ('id', '!=', line_id)], context=context)