# Copyright (C) 2004-Today Apertoso NV () # Copyright (C) 2016-Today: La Louve () # Copyright (C) 2019-Today: Druidoo () # @author: Jos DE GRAEVE () # @author: Sylvain LE GAL (https://twitter.com/legalsylvain) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from odoo import fields, models class PosConfig(models.Model): _inherit = 'pos.config' require_customer = fields.Selection([ ('no', 'Optional'), ('payment', 'Required before paying'), ('order', 'Required before starting the order'), ], string='Require Customer', default='no', help="Require customer for orders in this point of sale:\n" "* 'Optional' (customer is optional);\n" "* 'Required before paying';\n" "* 'Required before starting the order';", )