From 44f0b0d97c14b041d0213cf3124ff043ca6053c3 Mon Sep 17 00:00:00 2001 From: Andrius Preimantas Date: Thu, 18 Jun 2015 11:08:38 +0300 Subject: [PATCH] [FIX][pos_trade_receivable_autoreconcile] Only reconcile Trade receivable when it's valid --- pos_trade_receivable_autoreconcile/model/point_of_sale.py | 2 +- 1 file changed, 1 insertion(+), 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 cf1ade22..5d457e4f 100644 --- a/pos_trade_receivable_autoreconcile/model/point_of_sale.py +++ b/pos_trade_receivable_autoreconcile/model/point_of_sale.py @@ -35,7 +35,7 @@ class POSOrder(models.Model): continue for line in each.journal_entry_id.line_id: - if line.account_id.id == order_account: + if line.account_id.id == order_account and line.state == 'valid': grouped_data[key].append(line.id) for key, value in grouped_data.iteritems(): for line in order.account_move.line_id: