diff --git a/addons/account_payment/wizard/account_payment_pay.py b/addons/account_payment/wizard/account_payment_pay.py index 132ab33af2c..09ea68e7d30 100644 --- a/addons/account_payment/wizard/account_payment_pay.py +++ b/addons/account_payment/wizard/account_payment_pay.py @@ -21,8 +21,8 @@ from osv import fields, osv class account_payment_make_payment(osv.osv_memory): - _name = 'account.payment.make.payment' - _description = 'Account make payment' + _name = "account.payment.make.payment" + _description = "Account make payment" def launch_wizard(self, cr, uid, ids, context=None): """ @@ -33,7 +33,7 @@ class account_payment_make_payment(osv.osv_memory): # obj_model = self.pool.get('ir.model.data') # obj_act = self.pool.get('ir.actions.act_window') # order = obj_payment_order.browse(cr, uid, context['active_id'], context) - obj_payment_order.set_done(cr, uid, context['active_id'], context) + obj_payment_order.set_done(cr, uid, [context['active_id']], context) return {} # t = order.mode and order.mode.type.code or 'manual' # if t == 'manual':