[FIX] point_of_sale: continuation of the session closing fix
This commit is contained in:
parent
62a8e5b457
commit
0829afadd2
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue