[FIX] point_of_sale: continuation of the session closing fix

This commit is contained in:
Frederic van der Essen 2014-08-20 23:08:20 +02:00
parent 62a8e5b457
commit 0829afadd2
1 changed files with 2 additions and 1 deletions

View File

@ -471,9 +471,10 @@ class pos_session(osv.osv):
'amount': st.difference,
'ref': record.name,
'name': name,
'journal_id': st.journal_id.id,
}, context=context)
st.write({}) # will update balances for cash statements
st.write({'balance_end_real': st.balance_end}) # 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)