Hello, This fix doesn't work... But I fixed the problem.
- result = voucher_obj.onchange_partner_id(cr, uid, [], partner_id=line.partner_id.id, journal_id=statement.journal_id.id, price=abs(amount), voucher_currency_id= statement.currency.id, ttype='payment', date=line.ml_maturity_date, context=context) + result = voucher_obj.onchange_partner_id(cr, uid, [], partner_id=line.partner_id.id, journal_id=statement.journal_id.id, amount=abs(amount), currency_id= statement.currency.id, ttype='payment', date=line.ml_maturity_date, context=context) This is wrong, the amount field doesn't exist so it gives an error again. This does work: - result = voucher_obj.onchange_partner_id(cr, uid, [], partner_id=line.partner_id.id, journal_id=statement.journal_id.id, price=abs(amount), voucher_currency_id= statement.currency.id, ttype='payment', date=line.ml_maturity_date, context=context) + result = voucher_obj.onchange_partner_id(cr, uid, [], partner_id=line.partner_id.id, journal_id=statement.journal_id.id, price=abs(amount), currency_id= statement.currency.id, ttype='payment', date=line.ml_maturity_date, context=context) kind regards Evert Dausy -- You received this bug notification because you are a member of OpenERP Framework Experts, which is subscribed to OpenERP Addons. https://bugs.launchpad.net/bugs/904671 Title: Import Payment lines wizard is not working Status in OpenERP Addons (modules): Fix Released Bug description: Trunk install account_payment 1. accounting > bank and cash > bank statements 2. click on import payment line button 3. create one entry for populate statement and click on add it will give an error. Traceback (most recent call last): File "/home/turkesh/Desktop/rdtools/server/trunk/openerp/osv/osv.py", line 120, in wrapper return f(self, dbname, *args, **kwargs) File "/home/turkesh/Desktop/rdtools/server/trunk/openerp/osv/osv.py", line 172, in execute res = self.execute_cr(cr, uid, obj, method, *args, **kw) File "/home/turkesh/Desktop/rdtools/server/trunk/openerp/osv/osv.py", line 163, in execute_cr return getattr(object, method)(cr, uid, *args, **kw) File "/home/turkesh/Desktop/rdtools/addons/trunk/account_payment/wizard/account_payment_populate_statement.py", line 79, in populate_statement result = voucher_obj.onchange_partner_id(cr, uid, [], partner_id=line.partner_id.id, journal_id=statement.journal_id.id, price=abs(amount), voucher_currency_id= statement.currency.id, ttype='payment', date=line.ml_maturity_date, context=context) TypeError: onchange_partner_id() got an unexpected keyword argument 'price' To manage notifications about this bug go to: https://bugs.launchpad.net/openobject-addons/+bug/904671/+subscriptions -- Mailing list: https://launchpad.net/~credativ Post to : [email protected] Unsubscribe : https://launchpad.net/~credativ More help : https://help.launchpad.net/ListHelp

