bug-fix: solve the problem for the account voucher
authorMantavya Gajjar <mga@tinyerp.com>
Fri, 15 May 2009 11:35:22 +0000 (17:05 +0530)
committerMantavya Gajjar <mga@tinyerp.com>
Fri, 15 May 2009 11:35:22 +0000 (17:05 +0530)
declare variable before using it

bzr revid: mga@tinyerp.com-20090515113522-4k0b6qgr4qpg3bo9

addons/account_voucher/voucher.py

index a1ce08e..d1dc30c 100755 (executable)
@@ -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']