Chèn và liên kết đến dữ liệu Odoo¶
Một số phần tử từ cơ sở dữ liệu Odoo của bạn có thể được chèn vào bảng tính Odoo, cụ thể là:
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.
Ghi chú
Danh sách, bảng tổng hợp và biểu đồ từ các ứng dụng và mô hình khác nhau có thể được chèn vào cùng một bảng tính.
It is also possible to insert a pivot table that retrieves Odoo data directly from an Odoo spreadsheet.
Mẹo
Nếu bạn định sử dụng bộ lọc toàn cục để lọc động dữ liệu Odoo trong bảng tính hoặc bảng điều khiển, đừng sử dụng cùng điều kiện để thiết lập danh sách, bảng tổng hợp hoặc biểu đồ ban đầu trong cơ sở dữ liệu của bạn.
Cũng có thể:
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
Nguồn dữ liệu¶
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.
Ghi chú
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.
Nhấp vào nguồn dữ liệu sẽ mở các thuộc tính liên quan trong bảng điều khiển ở bên phải bảng tính.
Ghi chú
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.
Mẹo
Bảng điều khiển thuộc tính cũng có thể được mở bằng cách nhấp chuột phải vào bất kỳ ô nào của danh sách hoặc bảng tổng hợp đã chèn, sau đó nhấp vào See list properties hoặc See pivot properties, hoặc bằng cách nhấp vào biểu tượng (menu) ở góc trên bên phải của biểu đồ đã chèn, sau đó nhấp vào Edit.
Sau khi thuộc tính của một nguồn dữ liệu cụ thể được mở, chúng vẫn mở ngay cả khi điều hướng giữa các tab bảng tính. Để đóng bảng điều khiển thuộc tính, hãy nhấp vào biểu tượng (close) ở góc trên bên phải của bảng điều khiển.
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.
Truy cập dữ liệu cơ bản¶
Dữ liệu cơ bản của danh sách, bảng tổng hợp hoặc biểu đồ đã chèn có thể được truy cập bất kỳ lúc nào. Để xem:
một bản ghi riêng lẻ của danh sách đã chèn, hãy nhấp chuột phải vào bất kỳ ô nào của hàng liên quan, sau đó chọn See record
danh sách các bản ghi được tham chiếu bởi một ô riêng lẻ của bảng tổng hợp đã chèn, hãy nhấp chuột phải vào ô đó, sau đó chọn See records
danh sách các bản ghi được biểu diễn bởi một điểm dữ liệu của biểu đồ đã chèn, hãy nhấp vào điểm dữ liệu.
Mẹo
Sử dụng nút chuột giữa hoặc Ctrl + nhấp chuột trái (Microsoft/Linux), hoặc Command + nhấp chuột trái (Mac OS) để mở kết quả trong thẻ trình duyệt mới.
Để quay lại bảng tính sau khi xem dữ liệu cơ bản, nhấp vào tên bảng tính trong đường dẫn đầu trang.