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.

26 lines
933 B

  1. # -*- coding: utf-8 -*-
  2. # Copyright (C) 2004-Today Apertoso NV (<http://www.apertoso.be>)
  3. # Copyright (C) 2016-Today: La Louve (<http://www.lalouve.net/>)
  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 openerp import fields, models
  8. class PosConfig(models.Model):
  9. _inherit = 'pos.config'
  10. _REQUIRE_CUSTOMER_KEYS = [
  11. ('no', 'Optional'),
  12. ('payment', 'Required before paying'),
  13. ('order', 'Required before starting the order'),
  14. ]
  15. require_customer = fields.Selection(
  16. selection=_REQUIRE_CUSTOMER_KEYS,
  17. string='Require Customer',
  18. help="Require customer for orders in this point of sale:\n"
  19. "* 'Optional' (customer is optional);\n"
  20. "* 'Required before paying';\n"
  21. "* 'Required before starting the order';")