bzr revid: mra@mra-laptop-20100930054040-49hxtzj6v9pbtlfa
This commit is contained in:
Mustufa Rangwala 2010-09-30 11:10:40 +05:30
parent e87753d2e9
commit 9fbb0e95e4
1 changed files with 4 additions and 1 deletions

View File

@ -334,7 +334,7 @@ class account_voucher(osv.osv):
return default
def onchange_partner_id(self, cr, uid, ids, partner_id, journal_id, price, currency_id, ttype, context={}):
def onchange_partner_id(self, cr, uid, ids, partner_id, journal_id, price, currency_id, ttype, context=None):
"""price
Returns a dict that contains new values and context
@ -347,6 +347,9 @@ class account_voucher(osv.osv):
if not journal_id:
return {}
if context is None:
context = {}
currency_pool = self.pool.get('res.currency')
move_pool = self.pool.get('account.move')
line_pool = self.pool.get('account.voucher.line')