From 36e7327f3280012472a07a01a7cd67c72e9b7f93 Mon Sep 17 00:00:00 2001 From: Goffin Simon Date: Thu, 27 Oct 2016 17:06:50 +0200 Subject: [PATCH] [FIX] point of sale: Closing a cash control session Before the fix: When creating a new session with Cash control POS then it was impossible to close the session. After the fix: The same flow as in 9.0 when closing a session opw:691517 --- addons/point_of_sale/models/pos_session.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/addons/point_of_sale/models/pos_session.py b/addons/point_of_sale/models/pos_session.py index 66dfb2b6659..3605c70824a 100644 --- a/addons/point_of_sale/models/pos_session.py +++ b/addons/point_of_sale/models/pos_session.py @@ -223,6 +223,10 @@ class PosSession(models.Model): @api.multi def action_pos_session_closing_control(self): for session in self: + #DO NOT FORWARD-PORT + if session.state == 'closing_control': + session.action_pos_session_close() + continue for statement in session.statement_ids: if (statement != session.cash_register_id) and (statement.balance_end != statement.balance_end_real): statement.write({'balance_end_real': statement.balance_end})