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.

22 lines
968 B

  1. # -*- coding: utf-8 -*-
  2. # Copyright (C) 2018 - Today: GRAP (http://www.grap.coop)
  3. # @author: Sylvain LE GAL (https://twitter.com/legalsylvain)
  4. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
  5. from odoo import fields, models
  6. class PosConfig(models.Model):
  7. _inherit = 'pos.config'
  8. pos_order_timeout = fields.Integer(
  9. string='PoS Order(s) Timeout', help="Defines the value of the"
  10. " client-side timeout for the creation of PoS Order(s)"
  11. " from the POS UI.\n"
  12. " The value is expressed in seconds, for a single order.\n"
  13. " If not defined, the default Odoo value will be used: 7.5 seconds.\n"
  14. " If the call contains more than one order"
  15. " (after a long disconnection period for example, or if the previous"
  16. " call raised the timeout),\n the effective timeout value applied will"
  17. " be equal to the defined timeout value multiplied by the number of"
  18. " orders.\n")