@@ -10,7 +10,9 @@ Several elements from your Odoo database can be inserted into an Odoo spreadshee
10
10
11
11
Each time a list, pivot table, or chart is inserted, a :ref: `data source
12
12
<spreadsheet/insert/data-sources>` is created. This data source connects the spreadsheet to your
13
- Odoo database, retrieving up-to-date information every time the spreadsheet is opened or reloaded.
13
+ Odoo database, retrieving up-to-date information every time the spreadsheet is opened, the browser
14
+ page is reloaded, or data is manually refreshed by clicking :menuselection: `Data --> Refresh all
15
+ data ` from the menu bar.
14
16
15
17
:ref: `Inserted lists <spreadsheet/insert/list >` and :ref: `inserted pivot tables
16
18
<spreadsheet/insert/pivot-table>` use formulas with Odoo-specific :ref: `list functions
@@ -19,6 +21,10 @@ Odoo database, retrieving up-to-date information every time the spreadsheet is o
19
21
further manipulated in the spreadsheet. Certain elements of :ref: `inserted charts
20
22
<spreadsheet/insert/chart>` can be modified, but no data manipulation or computation is possible.
21
23
24
+ .. note ::
25
+ Lists, pivot tables, and charts from different apps and models can be inserted into the same
26
+ spreadsheet.
27
+
22
28
.. tip ::
23
29
If you intend to use :doc: `global filters <global_filters >` to dynamically filter Odoo data in
24
30
a spreadsheet or dashboard, do not use the same conditions to establish the initial list, pivot
@@ -41,7 +47,8 @@ Data sources
41
47
Data sources, which are created each time a :ref: `list <spreadsheet/insert/list >`, :ref: `pivot table
42
48
<spreadsheet/insert/pivot-table>` or :ref: `graph <spreadsheet/insert/chart >` is inserted into an
43
49
Odoo spreadsheet, connect the spreadsheet and the relevant :doc: `model
44
- <../../studio/models_modules_apps>` in your database.
50
+ <../../studio/models_modules_apps>` in your database, keeping the data in the spreadsheet
51
+ up-to-date.
45
52
46
53
Each data source is defined by properties that can be accessed via the :guilabel: `Data ` menu. Data
47
54
sources are identified by their respective :icon: `oi-view-pivot ` :guilabel: `(pivot table) `,
@@ -51,12 +58,17 @@ by their ID and name, e.g., :icon:`oi-view-pivot` *(#1) Sales Analysis by Produc
51
58
.. image :: insert/data-menu.png
52
59
:alt: Data sources listed in Data menu
53
60
54
- Clicking on a data source opens its properties in a pane to the right of the spreadsheet.
61
+ Clicking on a data source opens the related properties in a pane on the right of the spreadsheet.
55
62
56
63
.. tip ::
57
- Once the properties of a specific data source are open, they remain open even when navigating
58
- between spreadsheet tabs. To close the properties pane, click the :icon: `fa-times `
59
- :guilabel: `(close) ` icon at the top right of the pane.
64
+ - The properties pane can also be opened by right-clicking any cell of an inserted list or pivot
65
+ table, then clicking :icon: `oi-view-list ` :guilabel: `See list properties ` or
66
+ :icon: `oi-view-pivot ` :guilabel: `See pivot properties `, or by clicking the :icon: `fa-bars `
67
+ :guilabel: `(menu) ` icon at the top right of an inserted chart, then clicking
68
+ :icon: `fa-pencil-square-o ` :guilabel: `Edit `.
69
+ - Once the properties of a specific data source are open, they remain open even when navigating
70
+ between spreadsheet tabs. To close the properties pane, click the :icon: `fa-times `
71
+ :guilabel: `(close) ` icon at the top right of the pane.
60
72
61
73
.. note ::
62
74
Deleting an inserted list or pivot table, or deleting the sheet into which it was inserted, does
@@ -83,9 +95,9 @@ Insert a list
83
95
84
96
To insert a list:
85
97
86
- #. With the list view selected , click the :icon: `fa-cog ` :guilabel: ` (Actions) ` icon
87
- beside the name of the view, then :menuselection: `Spreadsheet --> ` :icon: ` oi-view-list `
88
- :menuselection: `Insert list in spreadsheet `.
98
+ #. With the relevant list view open in your database , click the :icon: `fa-cog `
99
+ :guilabel: ` (Actions) ` icon beside the name of the view, then :menuselection: `Spreadsheet --> `
100
+ :icon: ` oi-view-list ` : menuselection: `Insert list in spreadsheet `.
89
101
90
102
.. note ::
91
103
To insert only specific records, select the relevant records, click the :icon: `fa-cog `
@@ -139,6 +151,9 @@ name of the list followed by the list ID, e.g., *Quotations by Total (List #1)*.
139
151
side of the screen shows the :ref: `list properties <spreadsheet/insert/list-properties >`.
140
152
141
153
.. tip ::
154
+ - To view an individual record of an inserted list, right-click on any cell of the relevant row,
155
+ then click :icon: `fa-eye ` :guilabel: `See record `. To return to the spreadsheet, click the name
156
+ of the spreadsheet in the breadcrumbs at the top of the page.
142
157
- To sever the link between an inserted list and your database, select the entire list,
143
158
right-click and select :icon: `fa-clipboard ` :guilabel: `Copy ` then right-click again and select
144
159
:menuselection: `Paste special --> Paste as value `.
@@ -183,7 +198,8 @@ List properties
183
198
184
199
The list properties appear on the right side of the screen when a list is inserted. They can be
185
200
accessed at any time via the :guilabel: `Data ` menu by clicking the relevant list, as prefaced by
186
- the :icon: `oi-view-list ` :guilabel: `(list) ` icon.
201
+ the :icon: `oi-view-list ` :guilabel: `(list) ` icon, or by right-clicking anywhere on the list and
202
+ clicking :icon: `oi-view-list ` :guilabel: `See list properties `.
187
203
188
204
The following list properties are shown, some of which can be edited:
189
205
@@ -332,17 +348,14 @@ Insert a pivot table
332
348
====================
333
349
334
350
.. tip ::
335
- When a pivot table is inserted into a spreadsheet, it is by default static. Converting a static
336
- pivot table to a :doc: `dynamic pivot table <dynamic_pivot_tables >` ensures the pivot table can
337
- expand to accommodate new data series, such as sales data for a new quarter, and allows you to
338
- modify the dimensions (i.e., columns and rows) and measures.
339
-
340
- It is therefore possible to insert a basic pivot table with minimal configuration and refine it
341
- directly in the spreadsheet after converting it to a dynamic pivot table.
351
+ Converting an inserted pivot table to a :doc: `dynamic pivot table <dynamic_pivot_tables >` allows
352
+ you to add, remove, and manipulate dimensions (i.e., columns and rows) and measures. It is
353
+ therefore possible to insert a basic pivot table with minimal configuration, convert it to a
354
+ dynamic pivot table, then refine it directly in the spreadsheet.
342
355
343
356
To insert a pivot table:
344
357
345
- #. With the pivot view selected , click :guilabel: `Insert in Spreadsheet `.
358
+ #. With the relevant pivot view open in your database , click :guilabel: `Insert in Spreadsheet `.
346
359
#. In the window that opens, edit the :guilabel: `Name of the pivot ` if needed.
347
360
348
361
This name is used in the sheet name and in the :ref: `pivot table properties
@@ -367,6 +380,18 @@ shows the name of the pivot table followed by the pivot table ID, e.g., *Sales A
367
380
Team (Pivot #1) *. A pane on the right side of the screen shows the :ref: `pivot table properties
368
381
<spreadsheet/insert/pivot-table-properties>`.
369
382
383
+ .. tip ::
384
+ - To view the records referenced by an individual cell of a pivot table, right-click on the cell,
385
+ then click :icon: `fa-eye ` :guilabel: `See record `. To return to the spreadsheet, click the name
386
+ of the spreadsheet in the breadcrumbs at the top of the page.
387
+ - To sever the link between an inserted pivot table and your database, select the entire pivot
388
+ table, right-click and select :icon: `fa-clone ` :guilabel: `Copy `, then right-click again and
389
+ select :menuselection: `Paste special --> Paste as value `.
390
+ - Do not modify the pivot table ID in the sheet name, as the inserted pivot table retains this ID
391
+ for the lifetime of the spreadsheet. This pivot table ID is used in the :ref: `spreadsheet
392
+ functions <spreadsheet/insert/pivot-table-functions-static>` that retrieve data from your
393
+ database.
394
+
370
395
.. _spreadsheet/insert/pivot-table-functions-static :
371
396
372
397
Pivot table functions
@@ -394,9 +419,10 @@ The arguments of the functions are as follows:
394
419
period targeted.
395
420
396
421
.. tip ::
397
- To see the formulas of spreadsheet cells, click :menuselection: `View --> ` :icon: `fa-eye `
398
- :menuselection: `Show --> Formulas ` on the menu bar. The example below shows the functions used to
399
- retrieve headers and values for a static pivot table.
422
+ Clicking on an individual cell displays the related formula, if relevant, in the formula bar. To
423
+ display all the formulas of a spreadsheet at the same time, click :menuselection: `View --> `
424
+ :icon: `fa-eye ` :menuselection: `Show --> Formulas ` on the menu bar. The example below shows the
425
+ functions used to retrieve headers and values of a static pivot table.
400
426
401
427
.. image :: insert/pivot-table-formulas.png
402
428
:alt: Functions of a static pivot table
@@ -512,7 +538,7 @@ Insert a chart
512
538
513
539
To insert a chart from an Odoo database into an Odoo spreadsheet:
514
540
515
- #. With the graph view selected , click :guilabel: `Insert in Spreadsheet `.
541
+ #. With the relevant graph view open in your database , click :guilabel: `Insert in Spreadsheet `.
516
542
#. In the window that opens, edit the :guilabel: `Name of the graph ` if needed.
517
543
518
544
#. Click :guilabel: `Blank spreadsheet ` or select in which existing spreadsheet the chart should be
@@ -528,6 +554,14 @@ To insert a chart from an Odoo database into an Odoo spreadsheet:
528
554
529
555
Charts are inserted on the first sheet of the spreadsheet.
530
556
557
+ .. tip ::
558
+ Clicking on a data point in a chart opens the relevant list view in the database. In the example,q
559
+ clicking on :guilabel: `Jessica Childs ` opens the list view of all sales by this salesperson that
560
+ match the domain of the chart.
561
+
562
+ .. image :: insert/clickable-link-chart.png
563
+ :alt: A clickable link to an Odoo menu plus clickable data point
564
+
531
565
.. _spreadsheet/insert/chart-properties :
532
566
533
567
Chart properties
@@ -772,9 +806,9 @@ To insert a clickable link from a cell:
772
806
right-click on the cell, then click :icon: `fa-link ` :guilabel: `Insert link `. Next, depending on
773
807
the desired outcome, perform one of the following actions:
774
808
775
- - Click the :icon: `fa-bars ` :guilabel: `(menu) ` icon, then :guilabel: `Link an Odoo menu `. Select the relevant
776
- menu item from the list or click :guilabel: `Search more ` to choose from a list of all menu
777
- items. Click :guilabel: `Confirm `.
809
+ - Click the :icon: `fa-bars ` :guilabel: `(menu) ` icon, then :guilabel: `Link an Odoo menu `. Select
810
+ the relevant menu item from the list or click :guilabel: `Search more ` to choose from a list of
811
+ all menu items. Click :guilabel: `Confirm `.
778
812
- Click the :icon: `fa-bars ` :guilabel: `(menu) ` icon, then :guilabel: `Link sheet `, then choose the
779
813
relevant sheet from the current spreadsheet.
780
814
- Under :guilabel: `Link `, type a URL.
@@ -798,14 +832,6 @@ To insert a clickable link from a chart to an Odoo menu item:
798
832
Hover over the top right of the chart's box to see that a new :icon: `fa-external-link `
799
833
:guilabel: `(external link) ` icon has been added.
800
834
801
- .. tip ::
802
- Clicking on a data point in a chart opens the relevant list view in the database. In the example
803
- clicking on :guilabel: `Jessica Childs ` opens the list view of all sales by this salesperson that
804
- match the domain of the chart.
805
-
806
- .. image :: insert/clickable-link-chart.png
807
- :alt: A clickable link to an Odoo menu plus clickable data point
808
-
809
835
.. _spreadsheet/insert/financial-data :
810
836
811
837
Insert financial data
0 commit comments