From b8a25493df438ddb7ffac532d2c29d50e5a4d181 Mon Sep 17 00:00:00 2001 From: "sbh (Open ERP)" Date: Mon, 26 Apr 2010 11:14:05 +0530 Subject: [PATCH] [Fix] point_of_sale: fix the problem of loop bzr revid: sbh@tinyerp.com-20100426054405-0b2wyp7cqev5xfgw --- addons/point_of_sale/pos.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/point_of_sale/pos.py b/addons/point_of_sale/pos.py index 23bb900aa46..1f1f400abaf 100644 --- a/addons/point_of_sale/pos.py +++ b/addons/point_of_sale/pos.py @@ -287,7 +287,7 @@ class pos_order(osv.osv): res3= statement_obj.search(cr,uid,[('pos_statement_id','=', ids[0])]) list_jrnl=[] for r in res3: - cr.execute("select id from account_journal where name= '%s' and special_journal='t'"%(r[0])) + cr.execute("select id from account_journal where name= '%s' and special_journal='t'"%(r)) res3=cr.fetchone() is_special=res3 and res3[0] or None if is_special: