Insertar y vincular a datos de Odoo¶
Se pueden insertar varios elementos de tu base de datos de Odoo en una hoja de cálculo de Odoo, a saber:
pivot tables, i.e., data from a pivot view
charts, i.e., data from a graph view
Each time a list, pivot table, or chart is inserted, a data source is created, directly connecting the spreadsheet to the underlying data.
Nota
Se pueden insertar listas, tablas dinámicas y gráficos de diferentes aplicaciones y modelos en la misma hoja de cálculo.
It is also possible to insert a pivot table that retrieves Odoo data directly from an Odoo spreadsheet.
Truco
Si tienes la intención de usar filtros globales para filtrar dinámicamente datos de Odoo en una hoja de cálculo o tablero, no uses las mismas condiciones para establecer la lista inicial, tabla dinámica o gráfico en tu base de datos.
También es posible:
add clickable links to Odoo menu items, to other sheets of the same spreadsheet, or to external URLs
insert financial data from your Odoo database using Odoo-specific spreadsheet functions
Fuentes de datos¶
When you insert a list or chart from an Odoo list or chart view into an Odoo spreadsheet, or insert a pivot table referencing Odoo data from an Odoo pivot view or directly from a spreadsheet, the spreadsheet is automatically connected to the underlying data thanks to a unique “data source.”
This connection ensures that the data in the spreadsheet is updated when the corresponding data in your database changes, and allows you to access the underlying data.
Nota
Data in a list, pivot table, or chart linked to an Odoo model is refreshed every time the spreadsheet is opened or the browser page is reloaded. It is also possible to manually refresh data by clicking from the menu bar.
Inserting a pivot table from a range of data also creates a data source that connects the pivot table to the underlying spreadsheet range.
Each data source is identified by a unique ID, with each source type (i.e., list, pivot table, or chart) numbered separately, and each new list, pivot table, or chart numbered sequentially, e.g., List #1, List #2, Pivot #1, etc.
The properties of a data source can be accessed via the Data menu, where they are identified by their respective (pivot table), (list) or (chart) icon, followed by their ID and name, e.g., (#1) Sales Analysis by Product.
Al hacer clic en una fuente de datos se abren las propiedades relacionadas en un panel a la derecha de la hoja de cálculo.
Nota
Deleting an inserted list or pivot table, or deleting the sheet into which it was inserted, does not delete the underlying data source; this can only be deleted via the data source’s properties. Deleting an inserted chart, however, also deletes the underlying data source.
If an inserted list or pivot table is deleted, but not its data source, a warning appears beside the data source in the Data menu indicating that the data is not currently being used in the spreadsheet.
Truco
El panel de propiedades también se puede abrir haciendo clic derecho en cualquier celda de una lista o tabla dinámica insertada, luego haciendo clic en Ver propiedades de lista o Ver propiedades dinámicas, o haciendo clic en el icono (menú) en la parte superior derecha de un gráfico insertado, luego haciendo clic en Editar.
Una vez que las propiedades de una fuente de datos específica están abiertas, permanecen abiertas incluso al navegar entre pestañas de la hoja de cálculo. Para cerrar el panel de propiedades, haz clic en el icono (cerrar) en la parte superior derecha del panel.
To collapse the properties panel, click the (double chevron) icon at the top of the panel.
To pin the properties panel and allow another panel, such as the global filters panel, to open beside it, click the (pin) icon at the top of the panel.
Acceder a los datos subyacentes¶
Los datos subyacentes de una lista insertada, tabla dinámica o gráfico pueden consultarse en cualquier momento. Para verlos:
un registro individual de una lista insertada, haz clic derecho en cualquier celda de la fila correspondiente y selecciona Ver registro
una lista de registros referenciados por una celda individual de una tabla dinámica insertada, haz clic derecho en la celda y selecciona Ver registros
una lista de registros representados por un punto de datos de un gráfico insertado, haz clic en el punto de datos.
Truco
Usa el botón central del ratón o Ctrl + clic izquierdo (Microsoft/Linux), o Command + clic izquierdo (Mac OS) para abrir los resultados en una nueva pestaña del navegador.
Para volver a la hoja de cálculo después de ver los datos subyacentes, haz clic en el nombre de la hoja de cálculo en las migas de pan en la parte superior de la página.