2021-04-14 19:19:41 +02:00
|
|
|
# This file is part of Tryton. The COPYRIGHT file at the top level of
|
|
|
|
# this repository contains the full copyright notices and license terms.
|
|
|
|
from trytond.pool import PoolMeta
|
|
|
|
|
|
|
|
|
|
|
|
class DashApp(metaclass=PoolMeta):
|
|
|
|
__name__ = 'dash.app'
|
|
|
|
|
|
|
|
@classmethod
|
|
|
|
def _get_origin(cls):
|
|
|
|
origins = super(DashApp, cls)._get_origin()
|
2022-04-01 15:42:18 +02:00
|
|
|
origins.extend([
|
|
|
|
'dash.app.delivery',
|
|
|
|
'dash.app.sale_order',
|
|
|
|
'dash.app.take_order',
|
2022-08-07 23:47:26 +02:00
|
|
|
'dash.app.order_viewer',
|
|
|
|
'dash.app.self_service_sale',
|
2023-01-25 23:23:03 +01:00
|
|
|
'dash.app.sale_call_center',
|
2023-04-13 21:31:28 +02:00
|
|
|
'dash.app.sale_turn',
|
2023-04-19 21:15:59 +02:00
|
|
|
'dash.app.order_notification',
|
2023-09-07 04:45:01 +02:00
|
|
|
'dash.app.sale_audit',
|
2022-08-07 23:47:26 +02:00
|
|
|
])
|
2021-04-14 19:19:41 +02:00
|
|
|
return origins
|
2021-04-15 06:17:44 +02:00
|
|
|
|
|
|
|
@classmethod
|
|
|
|
def get_selection(cls):
|
|
|
|
options = super(DashApp, cls).get_selection()
|
|
|
|
options.extend([
|
|
|
|
('delivery', 'Delivery'),
|
|
|
|
('sale_order', 'Sale Order'),
|
2022-03-31 15:52:57 +02:00
|
|
|
('take_order', 'Take Order'),
|
2022-05-02 16:18:12 +02:00
|
|
|
('order_viewer', 'Order Viewer'),
|
2022-08-07 23:47:26 +02:00
|
|
|
('self_service_sale', 'Self-Service Sale'),
|
2023-01-25 23:23:03 +01:00
|
|
|
('sale_call_center', 'Sale Call Center'),
|
2023-04-13 21:31:28 +02:00
|
|
|
('sale_turn', 'Sale Turn'),
|
2023-04-19 21:15:59 +02:00
|
|
|
('order_notification', 'Order Notification'),
|
2023-09-07 04:45:01 +02:00
|
|
|
('sale_audit', 'Sale Audit'),
|
2021-04-15 06:17:44 +02:00
|
|
|
])
|
|
|
|
return options
|