From c904c0bd7a305717186158f469c40268e23d5de5 Mon Sep 17 00:00:00 2001 From: Andrius Preimantas Date: Thu, 18 Jun 2015 11:17:04 +0300 Subject: [PATCH] [FIX][pos_trade_receivable_autoreconcile] One more check for valid move related to previous commit --- pos_trade_receivable_autoreconcile/model/point_of_sale.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pos_trade_receivable_autoreconcile/model/point_of_sale.py b/pos_trade_receivable_autoreconcile/model/point_of_sale.py index 5d457e4f..d5dcf484 100644 --- a/pos_trade_receivable_autoreconcile/model/point_of_sale.py +++ b/pos_trade_receivable_autoreconcile/model/point_of_sale.py @@ -41,7 +41,8 @@ class POSOrder(models.Model): for line in order.account_move.line_id: if (line.partner_id.id == key[0] and line.account_id.id == key[1] and - (line.debit > 0) == key[2]): + (line.debit > 0) == key[2] and + line.state == 'valid'): grouped_data[key].append(line.id) break for key, value in grouped_data.iteritems():