[IMP] account_payment: add comment why only checking on 'debit' when creating voucher from 'import payment line wizard'

bzr revid: xal@openerp.com-20120601144935-zya10gihz0c6w1qn
This commit is contained in:
Xavier ALT 2012-06-01 16:49:35 +02:00
parent e3775db303
commit 62360913cd
1 changed files with 3 additions and 0 deletions

View 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)