mirror of
https://bitbucket.org/presik/trytonpsk-sale_pos_frontend_rest.git
synced 2023-12-14 06:12:59 +01:00
34 lines
835 B
Python
34 lines
835 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
|
||
|
from trytond.modules.dash.dash import DashAppBase
|
||
|
|
||
|
|
||
|
class DashApp(metaclass=PoolMeta):
|
||
|
__name__ = "dash.app"
|
||
|
|
||
|
@classmethod
|
||
|
def _get_origin(cls):
|
||
|
origins = super(DashApp, cls)._get_origin()
|
||
|
origins.extend(
|
||
|
[
|
||
|
"dash.app.rest_order",
|
||
|
]
|
||
|
)
|
||
|
return origins
|
||
|
|
||
|
@classmethod
|
||
|
def get_selection(cls):
|
||
|
options = super(DashApp, cls).get_selection()
|
||
|
options.extend(
|
||
|
[
|
||
|
("rest_order", "Rest Order"),
|
||
|
]
|
||
|
)
|
||
|
return options
|
||
|
|
||
|
|
||
|
class AppRestOrder(DashAppBase):
|
||
|
"App Rest Order"
|
||
|
__name__ = "dash.app.rest_order"
|