Inserează și leagă date Odoo¶
Diverse elemente din baza de date Odoo pot fi inserate într-un tabel Odoo, și anume:
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.
Notă
Liste, tabele pivot și grafice din aplicații și modele diferite pot fi inserate în același tabel.
It is also possible to insert a pivot table that retrieves Odoo data directly from an Odoo spreadsheet.
Sfat
If you intend to use global filters to dynamically filter Odoo data in a spreadsheet or dashboard, do not use the same conditions to establish the initial list, pivot table, or chart in your database.
De asemenea, este posibil să:
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
Surse de date¶
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.
Notă
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.
Clicking on a data source opens the related properties in a panel on the right of the spreadsheet.
Notă
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.
Sfat
The properties panel can also be opened by right-clicking any cell of an inserted list or pivot table, then clicking See list properties or See pivot properties, or by clicking the (menu) icon at the top right of an inserted chart, then clicking Edit.
Once the properties of a specific data source are open, they remain open even when navigating between spreadsheet tabs. To close the properties panel, click the (close) icon at the top right of the 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.
Accessing underlying data¶
The underlying data of an inserted list, pivot table, or chart can be accessed at any time. To view:
an individual record of an inserted list, right-click any cell of the relevant row, then select See record
a list of records referenced by an individual cell of an inserted pivot table, right-click the cell, then select See records
a list of records represented by a data point of an inserted chart, click the data point.
Sfat
Use the middle mouse button or Ctrl + left-click (Microsoft/Linux), or Command + left-click
(Mac OS) to open the results in a new browser tab.
To return to the spreadsheet after viewing the underlying data, click the name of the spreadsheet in the breadcrumbs at the top of the page.