[FIX] account: fixed starting details of bank statement
bzr revid: nel@tinyerp.com-20120507115051-cqz3mxi1trbmcuvr
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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']:
|
||||
|
||||
Reference in New Issue
Block a user