- for statement in session.statement_ids:
- if (statement != session.cash_register_id) and (statement.balance_end != statement.balance_end_real):
- self.pool.get('account.bank.statement').write(cr, uid, [statement.id], {'balance_end_real': statement.balance_end})
- return True
+ self.write(cr, uid, [session.id], {'stop_at': session.start_at}, context=context)
+ return res