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>
34 lines
927 B
JavaScript
34 lines
927 B
JavaScript
odoo.define('pos_restaurant.tour.ChromeTourMethods', function (require) {
|
|
'use strict';
|
|
|
|
const { createTourMethods } = require('point_of_sale.tour.utils');
|
|
const { Do } = require('point_of_sale.tour.ChromeTourMethods');
|
|
|
|
class DoExt extends Do {
|
|
backToFloor() {
|
|
return [
|
|
{
|
|
content: 'back to floor',
|
|
trigger: '.floor-button',
|
|
},
|
|
];
|
|
}
|
|
}
|
|
|
|
class Check {
|
|
backToFloorTextIs(floor, table) {
|
|
return [
|
|
{
|
|
content: `back to floor text is '${floor} ( ${table} )'`,
|
|
trigger: `.floor-button span:contains("${floor}") ~ .table-name:contains("${table}")`,
|
|
run: () => {},
|
|
},
|
|
];
|
|
}
|
|
}
|
|
|
|
class Execute {}
|
|
|
|
return createTourMethods('Chrome', DoExt, Check, Execute);
|
|
});
|