We now allow invoicing of finalized orders in an open session in this first iteration of order management in the pos frontend. Additionally, receipt reprinting is also introduced. With this feature, we can now reprint the receipt of old orders. closes odoo/odoo#51141 Task-id: 1981354 Related: odoo/enterprise#11690 Related: odoo/upgrade#1472 Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
40 lines
1.0 KiB
JavaScript
40 lines
1.0 KiB
JavaScript
odoo.define('pos_restaurant.tour.TextInputPopupTourMethods', function (require) {
|
|
'use strict';
|
|
|
|
const { createTourMethods } = require('point_of_sale.tour.utils');
|
|
|
|
class Do {
|
|
inputText(val) {
|
|
return [
|
|
{
|
|
content: `input text '${val}'`,
|
|
trigger: `.modal-dialog .popup-textinput input`,
|
|
run: `text ${val}`,
|
|
},
|
|
];
|
|
}
|
|
clickConfirm() {
|
|
return [
|
|
{
|
|
content: 'confirm text input popup',
|
|
trigger: '.modal-dialog .confirm',
|
|
},
|
|
];
|
|
}
|
|
}
|
|
|
|
class Check {
|
|
isShown() {
|
|
return [
|
|
{
|
|
content: 'text input popup is shown',
|
|
trigger: '.modal-dialog .popup-textinput',
|
|
run: () => {},
|
|
},
|
|
];
|
|
}
|
|
}
|
|
|
|
return createTourMethods('TextInputPopup', Do, Check);
|
|
});
|