Dashboards

Informes y gráficos

MarketplaceContenido y documentosVersión 0.3.0AGPL-3.0-or-latermanifest

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 and is private to them (and to dashboards.manager) unless it is shared; its tiles follow it. 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.

Detalles del módulo ​

  • Versión: 0.3.0
  • Autor: SpaceCorps
  • Licencia: AGPL-3.0-or-later
  • Requiere núcleo: ^0.2 (el núcleo actual es 0.2.0)
  • Madurez: Experimental
  • Categorías: Productividad

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.userenmascaradoUser name of the person who owns the dashboard; the person who creates it unless set otherwise
descriptionlongtextnonenodashboards.useren claroWhat the dashboard shows and for whom
sharedboolnonenodashboards.useren claroWhether everyone who may read dashboards sees it (and its tiles), or only the owner and dashboards.manager; the server enforces it
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