[FIX] hw_drivers: fix open cashbox with mapped action
In the new version of Odoo and in the drivers we "map" the actions. The "mapped" functions must take at least 2 variables as parameters; Self and Data closes odoo/odoo#78912 X-original-commit: 86653d2024075129c3f52390abdce0abb8d8ec31 Signed-off-by: Masereel Pierre <pim@odoo.com>
This commit is contained in:
@@ -250,7 +250,7 @@ class PrinterDriver(Driver):
|
||||
title = commands['title'] % b'IoTBox Status'
|
||||
self.print_raw(commands['center'] + title + b'\n' + wlan.encode() + mac.encode() + ip.encode() + homepage.encode() + pairing_code.encode() + commands['cut'])
|
||||
|
||||
def open_cashbox(self):
|
||||
def open_cashbox(self, data):
|
||||
"""Sends a signal to the current printer to open the connected cashbox."""
|
||||
commands = RECEIPT_PRINTER_COMMANDS[self.receipt_protocol]
|
||||
for drawer in commands['drawers']:
|
||||
|
||||
Reference in New Issue
Block a user