[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) <trj@odoo.com>
This commit is contained in:
Samuel Degueldre
2023-03-01 23:28:29 +01:00
parent fd30bdeffb
commit 7d451e2200
+1 -1
View File
@@ -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();
}
}
},