trytonpsk-dash_sale/dash.py

29 lines
853 B
Python

# 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()
origins.extend([
'dash.app.delivery',
'dash.app.sale_order',
'dash.app.take_order',
'dash.app.order_manage'])
return origins
@classmethod
def get_selection(cls):
options = super(DashApp, cls).get_selection()
options.extend([
('delivery', 'Delivery'),
('sale_order', 'Sale Order'),
('take_order', 'Take Order'),
('order_manage', 'Order Manage'),
])
return options