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.

25 lines
929 B

  1. # Copyright (C) 2004-Today Apertoso NV (<http://www.apertoso.be>)
  2. # Copyright (C) 2016-Today: La Louve (<http://www.lalouve.net/>)
  3. # Copyright (C) 2019-Today: Druidoo (<https://www.druidoo.io>)
  4. # @author: Jos DE GRAEVE (<Jos.DeGraeve@apertoso.be>)
  5. # @author: Sylvain LE GAL (https://twitter.com/legalsylvain)
  6. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
  7. from odoo import fields, models
  8. class PosConfig(models.Model):
  9. _inherit = 'pos.config'
  10. require_customer = fields.Selection([
  11. ('no', 'Optional'),
  12. ('payment', 'Required before paying'),
  13. ('order', 'Required before starting the order'),
  14. ],
  15. string='Require Customer',
  16. default='no',
  17. help="Require customer for orders in this point of sale:\n"
  18. "* 'Optional' (customer is optional);\n"
  19. "* 'Required before paying';\n"
  20. "* 'Required before starting the order';",
  21. )