forked from alaguraj/odoo-testing-addons
Implement KDS integration for POS order lines by adding preparation status, timing, and real-time notification mechanisms, and extend POS orders with source and fulfillment types.
This commit is contained in:
parent
eb242cdbee
commit
32553b2f4d
@ -142,6 +142,23 @@ class PosOrderLine(models.Model):
|
||||
class PosOrder(models.Model):
|
||||
_inherit = 'pos.order'
|
||||
|
||||
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='Order Source', default='walk_in')
|
||||
|
||||
fulfilment_type = fields.Selection([
|
||||
('dine_in', 'Dine-In'),
|
||||
('pickup', 'Pickup'),
|
||||
('delivery', 'Delivery'),
|
||||
], string='Fulfilment Type', default='dine_in')
|
||||
|
||||
@api.model
|
||||
def _prepare_order_line_vals(self, line, session_id=None):
|
||||
res = super()._prepare_order_line_vals(line, session_id)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user