[Fix] point_of_sale: fix the problem of loop

bzr revid: sbh@tinyerp.com-20100426054405-0b2wyp7cqev5xfgw
This commit is contained in:
sbh (Open ERP)
2010-04-26 11:14:05 +05:30
parent 1c983a940c
commit b8a25493df
+1 -1
View File
@@ -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: