From 7d451e220071c8a6df97336ba5ffceef97e6d6c0 Mon Sep 17 00:00:00 2001 From: Samuel Degueldre Date: Wed, 1 Mar 2023 12:43:30 +0000 Subject: [PATCH] [FIX] point_of_sale: fix crash when switching to pos in new tab In odoo/odoo#112219 the closePos method was moved to the pos store, but one call site was improperly adapted and tried to call the closePos method on the Chrome component instead of on the pos store, this commit fixes that. closes odoo/odoo#114009 Signed-off-by: Trinh Jacky (trj) --- addons/point_of_sale/static/src/js/Chrome.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/point_of_sale/static/src/js/Chrome.js b/addons/point_of_sale/static/src/js/Chrome.js index ee223a0ae14..d76696e4a31 100644 --- a/addons/point_of_sale/static/src/js/Chrome.js +++ b/addons/point_of_sale/static/src/js/Chrome.js @@ -336,7 +336,7 @@ export class Chrome extends Component { msg.session == this.env.pos.pos_session.id ) { console.info("POS / Session opened in another window. EXITING POS"); - this.closePos(); + this.pos.closePos(); } } },