From b8f7b472a62924ddc65f9a19b73c04484a76cf5c Mon Sep 17 00:00:00 2001 From: Pierre Masereel Date: Fri, 23 Aug 2019 13:44:25 +0000 Subject: [PATCH] [FIX] point_of_sale: specify views In the module pos_iot, an AbstractAction overrides the buttons that validate the session to send to terminal the balance of the day. TASK-ID: 2057436 --- addons/point_of_sale/models/pos_session.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/point_of_sale/models/pos_session.py b/addons/point_of_sale/models/pos_session.py index 0ff8e78550b..36c779eac79 100644 --- a/addons/point_of_sale/models/pos_session.py +++ b/addons/point_of_sale/models/pos_session.py @@ -745,10 +745,10 @@ class PosSession(models.Model): def open_frontend_cb(self): """Open the pos interface with config_id as an extra argument. - + In vanilla PoS each user can only have one active session, therefore it was not needed to pass the config_id on opening a session. It is also possible to login to sessions created by other users. - + :returns: dict """ if not self.ids: @@ -802,7 +802,7 @@ class PosSession(models.Model): 'view_type': 'form', 'view_mode': 'form', 'res_model': 'closing.balance.confirm.wizard', - 'view_id': self.env.ref('point_of_sale.closing_balance_confirm').id, + 'views': [(False, 'form')], 'type': 'ir.actions.act_window', 'context': context, 'target': 'new'