[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:
@@ -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();
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user