[MERGE] OPW 575437: account_payment: missing voucher entries when importing payment orders into bank statement
bzr revid: odo@openerp.com-20120604105309-i75i5ecc974joy92
This commit is contained in:
@@ -95,8 +95,11 @@ class account_payment_populate_statement(osv.osv_memory):
|
||||
}
|
||||
voucher_id = voucher_obj.create(cr, uid, voucher_res, context=context)
|
||||
voucher_line_dict = False
|
||||
if result['value']['line_ids']:
|
||||
for line_dict in result['value']['line_ids']:
|
||||
|
||||
# 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)
|
||||
if line.move_line_id.move_id.id == move_line.move_id.id:
|
||||
voucher_line_dict = line_dict
|
||||
@@ -120,4 +123,4 @@ class account_payment_populate_statement(osv.osv_memory):
|
||||
|
||||
account_payment_populate_statement()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
||||
Reference in New Issue
Block a user