From b1c90cee3cfe41e6d71eb25f913e6e66b1646bb0 Mon Sep 17 00:00:00 2001 From: "psi (Open ERP)" Date: Tue, 12 Oct 2010 10:41:23 +0530 Subject: [PATCH] [FIX] account_payment: Automated test account_payment/test/account_payment.yml bzr revid: psi@tinyerp.co.in-20101012051123-b6on1m0oslst1990 --- addons/account_payment/wizard/account_payment_pay.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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':