Dashboards

Informes y gráficos

MarketplaceContenido y documentosVersión 0.1.0manifest

Para qué sirve ​

Store dashboards and widgets as data (KPI, bar, line, pie and table definitions) for a client to render. The package never runs a query and does not check that the models it names exist.

Qué hace y qué no hace el paquete ​

Dashboards and their widgets stored as data, for a UI to render. A dashboard has a title and an owner. A widget describes one tile with these fields: kind (kpi, bar, line, pie or table), model_name (the model to read, for example sale_order), measure_field (the field to aggregate; empty for count), aggregate (count or sum; sum needs a number or money measure_field), group_by (field to split by, for bar, line, pie and table; empty for a single kpi value), filter (a JSON object of field names to exact values, for example {"state":"paid"}; empty means all records) and position (order on the dashboard, lowest first). The package only stores the definition; it does not check that the model or fields exist and it computes nothing.

Modelos ​

dashboards_dashboard ​

A dashboard: a titled, ordered collection of widgets

Grupo de lectura: dashboards.user. Grupo de escritura: dashboards.manager.

CampoTipoClase de datosDatos personalesGrupoLos agentes venDescripción
titletextnonenodashboards.useren claroDashboard title, for example Sales overview
ownertextinternalsídashboards.userenmascaradoName of the person who owns the dashboard
descriptionlongtextnonenodashboards.useren claroWhat the dashboard shows and for whom
sharedboolnonenodashboards.useren claroWhether everyone with access to the Dashboards app sees it, or only the owner
positionnumbernonenodashboards.useren claroOrder among dashboards, lowest first

dashboards_widget ​

One tile on a dashboard, defined by what to read and how to aggregate it

Grupo de lectura: dashboards.user. Grupo de escritura: dashboards.manager.

CampoTipoClase de datosDatos personalesGrupoLos agentes venDescripción
dashboard_idref → dashboards_dashboardnonenodashboards.useren claroThe dashboard the widget is on
titletextnonenodashboards.useren claroTile title, for example Paid orders
kindselect (kpi, bar, line, pie, table)nonenodashboards.useren claroHow the tile is drawn: kpi, bar, line, pie, table
model_nametextnonenodashboards.useren claroModel the tile reads, for example sale_order
measure_fieldtextnonenodashboards.useren claroField to aggregate: a number or money field of the model; empty when counting
aggregateselect (count, sum)nonenodashboards.useren claroHow records are combined: count or sum
group_bytextnonenodashboards.useren claroField to split the result by (a select, ref or date field); empty for one value
filterlongtextnonenodashboards.useren claroJSON object of field names to exact values that records must match, for example {"state":"paid"}; empty means all records
positionnumbernonenodashboards.useren claroOrder of the tile on the dashboard, lowest first

Flujos de trabajo ​

Esta aplicación no tiene acciones de flujo de trabajo; los registros se crean y se editan directamente.

Grupos de permisos ​

Grupos que usa esta aplicación:

  • dashboards.manager
  • dashboards.user

Pasos con aprobación ​

Ningún paso de esta aplicación requiere aprobación, salvo eliminar registros.

Qué pueden y qué no pueden hacer los agentes ​

Un agente puede leer, buscar, crear y actualizar registros de esta aplicación, y ejecutar las acciones que no requieren aprobación, dentro de los grupos de permisos de su token.

Solo puede proponer estos pasos, y una persona debe aprobarlos: dashboards_dashboard.delete, dashboards_widget.delete.

Los datos personales se enmascaran como tokens marcadores: dashboards_dashboard.owner.

Dependencias ​

Ninguna.

Instalación ​

Instálala desde la aplicación Customize (Marketplace) o desde la línea de comandos:

bash
obop modules install-from dashboards

Requiere una base de datos y derechos de administrador.

Crea la tuya ​

La guía de módulos explica cómo se escriben aplicaciones como esta