Fixed a bad identifier: 'inv' -> 'invoice'
authorOlivier Laurent <olt@tinyerp.com>
Mon, 15 Dec 2008 09:16:30 +0000 (10:16 +0100)
committerOlivier Laurent <olt@tinyerp.com>
Mon, 15 Dec 2008 09:16:30 +0000 (10:16 +0100)
bzr revid: olt@tinyerp.com-20081215091630-ztcb3wxnpg9zz1xe

addons/account/invoice.py

index 7307a2f..b995014 100644 (file)
@@ -836,7 +836,7 @@ class account_invoice(osv.osv):
         }
 
         lines = [(0, 0, l1), (0, 0, l2)]
-        move = {'ref': inv.number, 'line_id': lines, 'journal_id': pay_journal_id, 'period_id': period_id, 'date': date}
+        move = {'ref': invoice.number, 'line_id': lines, 'journal_id': pay_journal_id, 'period_id': period_id, 'date': date}
         move_id = self.pool.get('account.move').create(cr, uid, move)
 
         line_ids = []