bug-fix: solve the problem for the account voucher

declare variable before using it

bzr revid: mga@tinyerp.com-20090515113522-4k0b6qgr4qpg3bo9
This commit is contained in:
Mantavya Gajjar
2009-05-15 17:05:22 +05:30
parent 6c7d5df67c
commit 740746e602
+1
View File
@@ -251,6 +251,7 @@ class account_voucher(osv.osv):
date = inv.date
total_currency = 0
acc_id = None
for i in iml:
partner_id=i['partner_id']
acc_id = i['account_id']