account_payment error when adding lines to bank statement

Bug #715365 reported by Niels Huylebroeck
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Low
OpenERP R&D Addons Team 3
6.0
Confirmed
Undecided
Unassigned

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)

Related branches

Revision history for this message
Niels Huylebroeck (red15) wrote :

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.

Amit Parik (amit-parik)
Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3)
importance: Undecided → Low
status: New → Confirmed
Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
Meera Trambadia (OpenERP) (mtr-openerp) wrote :

Hello Niels Huylebroeck,

Its fixed in https://code.launchpad.net/~openerp-commiter/openobject-addons/trunk-dev-addons3-mtr1 branch.
Revision ID: mtr@mtr-20110210060026-waqyknss4283z004
Revision no: 4747

Thanks for your contribution.

Thanks
mtr

Changed in openobject-addons:
status: In Progress → Fix Committed
Revision history for this message
Mustufa Rangwala (Open ERP) (mra-tinyerp) wrote :

Should be fixed in stable 6 also.

thanks,
mra

Changed in openobject-addons:
status: Fix Committed → Fix Released
milestone: none → 6.1
Changed in openobject-addons:
status: Fix Released → Fix Committed
Revision history for this message
Mustufa Rangwala (Open ERP) (mra-tinyerp) wrote :

We have merged the branch of Meera Trambadia (OpenERP) in Addons3 branch. So fixed is available with the branch.
Addons3 branch will be merged with Trunk Addons soon.

Thank you,
mra

Revision history for this message
Mustufa Rangwala (Open ERP) (mra-tinyerp) wrote :

Merged Addons3 branch with Trunk Addons.

Thanks to Quentin,
mra

Changed in openobject-addons:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.