You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
564 B

4 years ago
  1. from odoo import models, fields
  2. class PosConfig(models.Model):
  3. _inherit = 'pos.config'
  4. use_jsprintmanager = fields.Boolean()
  5. jsprintmanager_default_receipt_printer = fields.Char(
  6. string='Default Printer for Receipts',
  7. help='Enter the name of the default printer to be used in receipts')
  8. jsprintmanager_output_format = fields.Selection(
  9. string='Printer output format',
  10. selection=[
  11. ('normal', 'Normal'),
  12. ('escpos', 'ESC/POS')
  13. ],
  14. help='Enter the format used by the printer')