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.

23 lines
957 B

  1. # Copyright (C) 2018 - Today: GRAP (http://www.grap.coop)
  2. # @author: Sylvain LE GAL (https://twitter.com/legalsylvain)
  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. pos_order_timeout = fields.Integer(
  8. string="PoS Order(s) Timeout",
  9. 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: 30 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",
  19. )