from odoo import fields, models class PosConfig(models.Model): _inherit = 'pos.config' use_qz_printer = fields.Boolean("Use QZ Tray Printer", help="Print directly using QZ Tray locally") qz_printer_name = fields.Char("QZ Printer Name", help="Name of the printer mapped in QZ Tray") qz_paper_width = fields.Selection( [('42', '58mm / 42 columns'), ('48', '80mm / 48 columns')], string="QZ Receipt Width", default='42', help="Character width used for ESC/POS receipt formatting." ) qz_print_logo = fields.Boolean( "Print Logo", default=True, help="Print the company logo at the top of the receipt when QZ printing is enabled." ) qz_enable_cutter = fields.Boolean( "Enable Cutter", default=True, help="Send an ESC/POS paper cut command after the receipt is printed." ) qz_cut_mode = fields.Selection( [('partial', 'Partial Cut'), ('full', 'Full Cut')], string="Cut Mode", default='partial', help="Paper cut command sent to the printer." )