[FIX] pos_self_order: print receipt only in kiosk mode

Before, a receipt was automatically generated in the mobile self order
and the confirmation screen would glitch when it was generated.

Now this receipt is only generated in kiosk mode and the confirmation
screen no longer glitches due to a hidden overflow.

closes odoo/odoo#139625

Signed-off-by: Vlad Stroia (vlst) <vlst@odoo.com>
This commit is contained in:
“moda”
2023-10-25 03:59:11 +00:00
parent 954d7a6b4a
commit fc0a803c26
2 changed files with 8 additions and 6 deletions
@@ -26,13 +26,14 @@ export class ConfirmationPage extends Component {
setTimeout(() => {
this.setDefautLanguage();
}, 5000);
setTimeout(() => {
this.printer.print(OrderReceipt, {
data: this.selfOrder.export_for_printing(this.selfOrder.currentOrder),
formatCurrency: this.selfOrder.formatMonetary,
});
}, 500);
}
setTimeout(() => {
this.printer.print(OrderReceipt, {
data: this.selfOrder.export_for_printing(this.selfOrder.currentOrder),
formatCurrency: this.selfOrder.formatMonetary,
});
}, 500);
});
this.initOrder();
@@ -12,6 +12,7 @@
html, body {
height: 100%;
overflow: hidden;
}
body {