[FIX] pos_epson_printer_restaurant: IoT printer selected
When selecting an Epson ePOS printer, the POS tried to print of a printer connected to an IoT Box. This happened because the override of create_printer was executed before its declaration in pos_restaurant.
This commit is contained in:
@@ -4,6 +4,11 @@ odoo.define('pos_epson_printer_restaurant.multiprint', function (require) {
|
||||
var models = require('point_of_sale.models');
|
||||
var EpsonPrinter = require('pos_epson_printer.Printer');
|
||||
|
||||
// The override of create_printer needs to happen after its declaration in
|
||||
// pos_restaurant. We need to make sure that this code is executed after the
|
||||
// multiprint file in pos_restaurant.
|
||||
require('pos_restaurant.multiprint');
|
||||
|
||||
models.load_fields("restaurant.printer", ["epson_printer_ip"]);
|
||||
|
||||
var _super_posmodel = models.PosModel.prototype;
|
||||
|
||||
Reference in New Issue
Block a user