It seems the date attribute is missing from the onchange_partner_id call. Not sure where it is used (seems to end up in context for multicurrency bookings) so I have just inserted the current date, maybe it would be better to change account_voucher module to not make date a required attribute instead.
** Patch added: "Added current date to onchange_partner_id call on account.voucher object" https://bugs.launchpad.net/openobject-addons/+bug/715365/+attachment/1838621/+files/account_payment_date_missing.patch -- You received this bug notification because you are a member of C2C OERPScenario, which is subscribed to the OpenERP Project Group. https://bugs.launchpad.net/bugs/715365 Title: account_payment error when adding lines to bank statement Status in OpenERP Modules (addons): New Bug description: When adding payment lines to the bank statement (via wizard account.payment.populate.statement) this error pops up when trying to add the actual lines to the statement. Environment Information : System : Linux-2.6.32-28-generic-x86_64-with-Ubuntu-10.04-lucid OS Name : posix Distributor ID: Ubuntu Description: Ubuntu 10.04.2 LTS Release: 10.04 Codename: lucid Operating System Release : 2.6.32-28-generic Operating System Version : #55-Ubuntu SMP Mon Jan 10 23:42:43 UTC 2011 Operating System Architecture : 64bit Operating System Locale : en_US.UTF8 Python Version : 2.6.5 OpenERP-Client Version : 6.0.1 Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last): File "/home/red15/Documents/Werk/OpenERP/trunk/server/bin/netsvc.py", line 489, in dispatch result = ExportService.getService(service_name).dispatch(method, auth, params) File "/home/red15/Documents/Werk/OpenERP/trunk/server/bin/service/web_services.py", line 599, in dispatch res = fn(db, uid, *params) File "/home/red15/Documents/Werk/OpenERP/trunk/server/bin/osv/osv.py", line 122, in wrapper return f(self, dbname, *args, **kwargs) File "/home/red15/Documents/Werk/OpenERP/trunk/server/bin/osv/osv.py", line 176, in execute res = self.execute_cr(cr, uid, obj, method, *args, **kw) File "/home/red15/Documents/Werk/OpenERP/trunk/server/bin/osv/osv.py", line 167, in execute_cr return getattr(object, method)(cr, uid, *args, **kw) File "/home/red15/Documents/Werk/OpenERP/trunk/addons/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), currency_id= statement.currency.id, ttype='payment', context=context) TypeError: onchange_partner_id() takes at least 10 non-keyword arguments (9 given) _______________________________________________ Mailing list: https://launchpad.net/~c2c-oerpscenario Post to : [email protected] Unsubscribe : https://launchpad.net/~c2c-oerpscenario More help : https://help.launchpad.net/ListHelp

