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.

24 lines
844 B

  1. # Copyright 2018 GRAP - Sylvain LE GAL
  2. # Copyright 2018 Tecnativa S.L. - David Vidal
  3. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
  4. from odoo import fields, models
  5. class PosConfig(models.Model):
  6. _inherit = 'pos.config'
  7. iface_load_done_order = fields.Boolean(
  8. string='Load Done Orders',
  9. default=True,
  10. help='Allows to load already done orders in the frontend to operate '
  11. 'over them, allowing reprint the tickets, return items, etc.',
  12. )
  13. iface_load_done_order_max_qty = fields.Integer(
  14. string='Max. Done Orders Quantity To Load',
  15. default=10,
  16. required=True,
  17. help='Maximum number of orders to load on the PoS at its init. '
  18. 'Set it to 0 to load none (it\'s still posible to load them by '
  19. 'ticket code).',
  20. )