[FIX] point_of_sale: partial fix for unclosable sessions
This commit is contained in:
parent
5dff035878
commit
62a8e5b457
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue