[FIX] account_voucher: fixed onchange_partner_id when no journal_id is given
bzr revid: qdp-launchpad@openerp.com-20111207161555-iatt11l2p3yynfzt
This commit is contained in:
@@ -511,6 +511,8 @@ class account_voucher(osv.osv):
|
||||
return vals
|
||||
|
||||
def onchange_partner_id(self, cr, uid, ids, partner_id, journal_id, amount, currency_id, ttype, date, context=None):
|
||||
if not journal_id:
|
||||
return {}
|
||||
res = self.recompute_voucher_lines(cr, uid, ids, partner_id, journal_id, amount, currency_id, ttype, date, context=context)
|
||||
vals = self.recompute_payment_rate(cr, uid, ids, res, currency_id, date, ttype, journal_id, amount, context=context)
|
||||
for key in vals.keys():
|
||||
|
||||
Reference in New Issue
Block a user