
from odoo import api, SUPERUSER_ID
from odoo.api import Environment

def check_pos_config():
    config = env['pos.config'].browse(2)
    if config:
        print(f"CONFIG: {config.name}")
        print(f"RESTAURANT: {config.module_pos_restaurant}")
        print(f"EPOS_PRINTER: {config.iface_print_skip_screen}")
        print(f"KDS_GROUPS: {len(config.printer_ids)}")
        for printer in config.printer_ids:
            print(f" - PRINTER: {printer.name}, TYPE: {printer.printer_type}")
    else:
        print("CONFIG_2_NOT_FOUND")

check_pos_config()
