[REF]
bzr revid: mra@mra-laptop-20100930054040-49hxtzj6v9pbtlfa
This commit is contained in:
parent
e87753d2e9
commit
9fbb0e95e4
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue