get only posted moves for GL balance

This commit is contained in:
Vincent Vinet
2014-11-06 14:24:35 -05:00
committed by Sandy Carter
parent cffe26c818
commit 58d58abc8c

View File

@@ -472,7 +472,8 @@ class bank_acc_rec_statement(orm.Model):
balance = account_obj.read(
cr, uid, account_id, ['balance'],
context={'date_from': date_from,
'date_to': date})
'date_to': date,
'state': 'posted'})
return balance["balance"]
def _get_move_line_write(self, line):