[FIX] Account payment
authorMustufa Rangwala <mra@mra-laptop>
Thu, 9 Sep 2010 06:01:30 +0000 (11:31 +0530)
committerMustufa Rangwala <mra@mra-laptop>
Thu, 9 Sep 2010 06:01:30 +0000 (11:31 +0530)
bzr revid: mra@mra-laptop-20100909060130-y20mvd7t2sscshcn

addons/account_payment/wizard/account_payment_order.py

index 696160c..97a66e9 100644 (file)
@@ -66,7 +66,7 @@ class payment_order_create(osv.osv_memory):
         if not line_ids: return {}
 
         payment = order_obj.browse(cr, uid, context['active_id'], context=context)
-        t = payment.mode and payment.mode.type.id or None
+        t = None
         line2bank = line_obj.line2bank(cr, uid, line_ids, t, context)
 
         ## Finally populate the current payment with new lines: