trytonpsk-crm_fiduprevisora/dash.py

33 lines
884 B
Python
Raw Permalink Normal View History

2022-11-15 20:56:02 +01: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.
2023-02-17 19:34:43 +01:00
2022-11-15 20:56:02 +01:00
from trytond.pool import PoolMeta
2023-02-17 19:34:43 +01:00
from trytond.modules.dash.dash import DashAppBase
2022-11-15 20:56:02 +01:00
class DashApp(metaclass=PoolMeta):
__name__ = 'dash.app'
@classmethod
def _get_origin(cls):
origins = super(DashApp, cls)._get_origin()
origins.extend([
'dash.app.crm_fiduprevisora',
2023-02-17 19:34:43 +01:00
'dash.app.consulta_pqr'
2022-11-15 20:56:02 +01:00
])
return origins
@classmethod
def get_selection(cls):
options = super(DashApp, cls).get_selection()
options.extend([
('crm_fiduprevisora', 'Crm Fiduprevisora'),
2023-02-17 19:34:43 +01:00
('consulta_pqr', 'Cosulta PQR'),
2022-11-15 20:56:02 +01:00
])
return options
2023-02-17 19:34:43 +01:00
class AppConsultaPQR(DashAppBase):
"App Consulta PQR"
__name__ = "dash.app.consulta_pqr"