[IMP] account_payment: add comment why only checking on 'debit' when creating voucher...
authorXavier ALT <xal@openerp.com>
Fri, 1 Jun 2012 14:49:35 +0000 (16:49 +0200)
committerXavier ALT <xal@openerp.com>
Fri, 1 Jun 2012 14:49:35 +0000 (16:49 +0200)
bzr revid: xal@openerp.com-20120601144935-zya10gihz0c6w1qn

addons/account_payment/wizard/account_payment_populate_statement.py

index cedfe55..b74ae87 100644 (file)
@@ -95,6 +95,9 @@ class account_payment_populate_statement(osv.osv_memory):
                 }
                 voucher_id = voucher_obj.create(cr, uid, voucher_res, context=context)
                 voucher_line_dict =  False
+
+                # NOTE: we only check for lines on 'debit' as Payment Order only allow user
+                # to choose account.move.line with credit > 0, i.e payment will be on 'debit'
                 if result['value']['line_dr_ids']:
                     for line_dict in result['value']['line_dr_ids']:
                         move_line = move_line_obj.browse(cr, uid, line_dict['move_line_id'], context)