[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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user