bugfix in the call of onchange_amount
bzr revid: stephane@tinyerp.com-20080917211837-219gqpm33caxblf6
This commit is contained in:
parent
9c4966f961
commit
8aaac71130
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue