[FIX] account: fixed starting details of bank statement

bzr revid: nel@tinyerp.com-20120507115051-cqz3mxi1trbmcuvr
This commit is contained in:
Najlaâ
2012-05-07 13:50:51 +02:00
parent 5abb0e9b48
commit 7b8a28bb3a
2 changed files with 4 additions and 3 deletions
+2 -2
View File
@@ -115,8 +115,8 @@ module named account_voucher.
'project/wizard/account_analytic_journal_report_view.xml',
'project/wizard/account_analytic_cost_ledger_for_journal_report_view.xml',
'project/wizard/account_analytic_chart_view.xml',
'product_view.xml',
'account_assert_test.xml',
# 'product_view.xml',
# 'account_assert_test.xml',
'process/statement_process.xml',
'process/customer_invoice_process.xml',
'process/supplier_invoice_process.xml',
+2 -1
View File
@@ -214,7 +214,8 @@ class account_cash_statement(osv.osv):
if self.pool.get('account.journal').browse(cr, uid, vals['journal_id'], context=context).type == 'cash':
open_close = self._get_cash_open_close_box_lines(cr, uid, context)
if vals.get('starting_details_ids', False):
for start in vals.get('starting_details_ids'):
starting_details_ids = [val for val in vals.get('starting_details_ids') if val[2]]
for start in starting_details_ids:
dict_val = start[2]
for end in open_close['end']:
if end[2]['pieces'] == dict_val['pieces']: