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.

45 lines
1.4 KiB

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