from odoo import models, fields


class PosConfigChannels(models.Model):
    _inherit = 'pos.config'

    default_order_source = fields.Selection([
        ('walk_in',      'Walk-In (Standard POS)'),
        ('phone',        'Telephone Order'),
        ('online',       'Online / eCommerce'),
        ('whatsapp',     'WhatsApp'),
        ('social_media', 'Social Media'),
        ('platform',     'Third-Party Platform'),
        ('kiosk',        'Self-Order Kiosk'),
        ('qr',           'QR Table Order'),
    ], string='Default Order Source', default='walk_in',
       help='Pre-select this order source when opening a new order in this terminal')

    default_fulfilment_type = fields.Selection([
        ('dine_in',  'Dine-In'),
        ('pickup',   'Pickup'),
        ('delivery', 'Delivery'),
    ], string='Default Fulfilment Type', default='dine_in',
       help='Pre-select this fulfilment type for new orders on this terminal')

    show_channel_panel = fields.Boolean(
        string='Show Channel / Fulfilment Panel',
        default=True,
        help='Show the Order Source and Fulfilment Type selector on the order screen'
    )
