[FIX] point_of_sale: partial fix for unclosable sessions

This commit is contained in:
Frederic van der Essen 2014-08-20 22:24:21 +02:00
parent 5dff035878
commit 62a8e5b457
1 changed files with 1 additions and 3 deletions

View File

@ -473,9 +473,7 @@ class pos_session(osv.osv):
'name': name,
}, context=context)
# Add a st._update_balance(...)
if st.journal_id.type == 'bank':
st.write({'balance_end_real' : st.balance_end})
st.write({}) # will update balances for cash statements
getattr(st, 'button_confirm_%s' % st.journal_id.type)(context=context)
self._confirm_orders(cr, uid, ids, context=context)
self.write(cr, uid, ids, {'state' : 'closed'}, context=context)