Files
odoo_source/addons/pos_restaurant/static/tests/tours/helpers/ChromeTourMethods.js
T
Joseph Caburnay b2f8170d88 [IMP] point_of_sale,pos_*: allow users to manage orders in the pos frontend
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>
2020-07-17 10:00:04 +00:00

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);
});