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.

32 lines
1.1 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. oldname='iface_load_done_order',
  14. )
  15. iface_return_done_order = fields.Boolean(
  16. string='Return Done Orders',
  17. default=True,
  18. help='Allows to return already done orders in the frontend',
  19. oldname='iface_load_done_order',
  20. )
  21. iface_load_done_order_max_qty = fields.Integer(
  22. string='Max. Done Orders Quantity To Load',
  23. default=10,
  24. required=True,
  25. help='Maximum number of orders to load on the PoS at its init. '
  26. 'Set it to 0 to load none (it\'s still posible to load them by '
  27. 'ticket code).',
  28. )