*: l10n_ae_pos, l10n_co_pos, l10n_fr_pos_cert, l10n_gcc_pos, l10n_in_pos, point_of_sale, pos_adyen, pos_discount, pos_epson_printer, pos_hr, pos_loyalty, pos_mercury, pos_restaurant, pos_sale, pos_sale_product_configurator, pos_six, pos_stripe After the architectural refactor of the PoS App, there are two classes that make sense to merge. In this refactoring task, we're merging them. closes odoo/odoo#124477 Task: 3358550 Related: odoo/enterprise#42257 Signed-off-by: Joseph Caburnay (jcb) <jcb@odoo.com>
17 lines
396 B
JavaScript
17 lines
396 B
JavaScript
/** @odoo-module */
|
|
|
|
import { Component } from "@odoo/owl";
|
|
import { usePos } from "@point_of_sale/app/store/pos_hook";
|
|
|
|
export class HeaderLockButton extends Component {
|
|
static template = "pos_hr.HeaderLockButton";
|
|
|
|
setup() {
|
|
this.pos = usePos();
|
|
}
|
|
async showLoginScreen() {
|
|
this.pos.reset_cashier();
|
|
await this.pos.showTempScreen("LoginScreen");
|
|
}
|
|
}
|