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.

38 lines
1.2 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. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
  6. from odoo import fields, models
  7. class PosConfig(models.Model):
  8. _inherit = 'pos.config'
  9. iface_reprint_done_order = fields.Boolean(
  10. string='Reprint Done Orders',
  11. default=True,
  12. help='Allows to reprint already done orders in the frontend',
  13. )
  14. iface_return_done_order = fields.Boolean(
  15. string='Return Done Orders',
  16. default=True,
  17. help='Allows to return already done orders in the frontend',
  18. )
  19. iface_copy_done_order = fields.Boolean(
  20. string='Duplicate Done Orders',
  21. default=True,
  22. help='Allows to duplicate already done orders in the frontend',
  23. )
  24. iface_load_done_order_max_qty = fields.Integer(
  25. string='Max. Done Orders Quantity To Load',
  26. default=10,
  27. required=True,
  28. help='Maximum number of orders to load on the PoS at its init. '
  29. 'Set it to 0 to load none (it\'s still possible to load them by '
  30. 'ticket code).',
  31. )