[FIX] account: Error creating a DTA
authorARA (OpenERP) <ara@tinyerp.com>
Mon, 24 Jan 2011 13:21:29 +0000 (18:51 +0530)
committerARA (OpenERP) <ara@tinyerp.com>
Mon, 24 Jan 2011 13:21:29 +0000 (18:51 +0530)
lp bug: https://launchpad.net/bugs/705675 fixed

bzr revid: ara@tinyerp.com-20110124132129-hqwsd5stpgmyc87v

addons/l10n_ch/wizard/create_dta.py

index d014c6b..90054fd 100644 (file)
@@ -554,7 +554,7 @@ def _create_dta(obj, cr, uid, data, context=None):
         dta = dta + record_gt890(v).generate()
 
     dta_data = base64.encodestring(dta)
-    payment_obj.set_done(cr, uid, data['id'], context)
+    payment_obj.set_done(cr, uid, [data['id']], context)
     attachment_obj.create(cr, uid, {
         'name': 'DTA',
         'datas': dta_data,