[FIX] point_of_sale: epson kitchen printer cannot render
When printer of type Epson are created for kitchen the pos model is not passed, and so the rendering of the receipt does not working for printers added that way. We are now correctly passing the pos model. OPW-2745009 closes odoo/odoo#83976 X-original-commit: 00713acce939df99016bdc71a8e9132fb564e978 Signed-off-by: Quentin Lejeune (qle) <qle@odoo.com>
This commit is contained in:
@@ -14,7 +14,7 @@ require('pos_restaurant.multiprint');
|
||||
const PosEpsonResPosGlobalState = (PosGlobalState) => class PosEpsonResPosGlobalState extends PosGlobalState {
|
||||
create_printer(config) {
|
||||
if (config.printer_type === "epson_epos") {
|
||||
return new EpsonPrinter(config.epson_printer_ip);
|
||||
return new EpsonPrinter(config.epson_printer_ip, this);
|
||||
} else {
|
||||
return super.create_printer(...arguments);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user