bugfix in the call of onchange_amount

bzr revid: stephane@tinyerp.com-20080917211837-219gqpm33caxblf6
This commit is contained in:
Stephane Wirtel 2008-09-17 23:18:37 +02:00
parent 9c4966f961
commit 8aaac71130
1 changed files with 2 additions and 1 deletions

View File

@ -438,7 +438,8 @@ class payment_line(osv.osv):
if move_line_id:
line = self.pool.get('account.move.line').browse(cr,uid,move_line_id)
data['amount_currency']=line.amount_to_pay
res = self.onchange_amount(cr, uid, ids, data['amount_currency'], currency, company_currency,
res = self.onchange_amount(cr, uid, ids, data['amount_currency'], currency,
company_currency, context)
if res:
data['amount'] = res['value']['amount']
data['partner_id']=line.partner_id.id