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.

46 lines
1.4 KiB

  1. # -*- coding: utf-8 -*-
  2. # Copyright 2018 GRAP - Sylvain LE GAL
  3. # Copyright 2018 Tecnativa S.L. - David Vidal
  4. # Copyright 2019 Coop IT Easy SCRLfs
  5. # Pierrick Brun <pierrick.brun@akretion.com>
  6. # Copyright 2019 Druidoo - Iván Todorovich
  7. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
  8. from odoo import fields, models
  9. class PosConfig(models.Model):
  10. _inherit = 'pos.config'
  11. iface_order_mgmt = fields.Boolean(
  12. string='Order Management',
  13. help='Allows to manage orders in the frontend',
  14. default=True,
  15. )
  16. iface_reprint_done_order = fields.Boolean(
  17. string='Reprint Orders',
  18. default=True,
  19. help='Allows to reprint already done orders in the frontend',
  20. )
  21. iface_return_done_order = fields.Boolean(
  22. string='Return Orders',
  23. default=True,
  24. help='Allows to return already done orders in the frontend',
  25. )
  26. iface_copy_done_order = fields.Boolean(
  27. string='Duplicate Orders',
  28. default=True,
  29. help='Allows to duplicate already done orders in the frontend',
  30. )
  31. iface_load_done_order_max_qty = fields.Integer(
  32. string='Maximum Orders to load',
  33. default=10,
  34. required=True,
  35. help='Maximum number of orders to load on the PoS at its init. '
  36. 'Set it to 0 to load none (it\'s still possible to load them by '
  37. 'ticket code).',
  38. )