@@ -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-clone ` :guilabel: `Copy ` then right-click again and select
144
159
:menuselection: `Paste special --> Paste as value `.
@@ -168,9 +183,10 @@ The arguments of the function are as follows:
168
183
- `field_name `: the technical name of the field.
169
184
170
185
.. tip ::
171
- To see the formulas of spreadsheet cells, click :menuselection: `View --> ` :icon: `fa-eye `
172
- :menuselection: `Show --> Formulas ` on the menu bar. The example below shows the functions used to
173
- retrieve list values.
186
+ Clicking on an individual cell displays the related formula, if relevant, in the formula bar. To
187
+ display all the formulas of a spreadsheet at the same time, click :menuselection: `View --> `
188
+ :icon: `fa-eye ` :menuselection: `Show --> Formulas ` on the menu bar. The example below shows the
189
+ functions used to retrieve list headers and values.
174
190
175
191
.. image :: insert/list-formulas.png
176
192
:alt: Viewing formulas of spreadsheet cells
@@ -182,7 +198,8 @@ List properties
182
198
183
199
The list properties appear on the right side of the screen when a list is inserted. They can be
184
200
accessed at any time via the :guilabel: `Data ` menu by clicking the relevant list, as prefaced by
185
- 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 `.
186
203
187
204
The following list properties are shown, some of which can be edited:
188
205
@@ -331,17 +348,14 @@ Insert a pivot table
331
348
====================
332
349
333
350
.. tip ::
334
- When a pivot table is inserted into a spreadsheet, it is by default static. Converting a static
335
- pivot table to a :doc: `dynamic pivot table <dynamic_pivot_tables >` ensures the pivot table can
336
- expand to accommodate new data series, such as sales data for a new quarter, and allows you to
337
- modify the dimensions (i.e., columns and rows) and measures.
338
-
339
- It is therefore possible to insert a basic pivot table with minimal configuration and refine it
340
- 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.
341
355
342
356
To insert a pivot table:
343
357
344
- #. 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 `.
345
359
#. In the window that opens, edit the :guilabel: `Name of the pivot ` if needed.
346
360
347
361
This name is used in the sheet name and in the :ref: `pivot table properties
@@ -366,6 +380,18 @@ shows the name of the pivot table followed by the pivot table ID, e.g., *Sales A
366
380
Team (Pivot #1) *. A pane on the right side of the screen shows the :ref: `pivot table properties
367
381
<spreadsheet/insert/pivot-table-properties>`.
368
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
+
369
395
.. _spreadsheet/insert/pivot-table-functions-static :
370
396
371
397
Pivot table functions
@@ -393,9 +419,10 @@ The arguments of the functions are as follows:
393
419
period targeted.
394
420
395
421
.. tip ::
396
- To see the formulas of spreadsheet cells, click :menuselection: `View --> ` :icon: `fa-eye `
397
- :menuselection: `Show --> Formulas ` on the menu bar. The example below shows the functions for a
398
- 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.
399
426
400
427
.. image :: insert/pivot-table-formulas.png
401
428
:alt: Functions of a static pivot table
@@ -511,7 +538,7 @@ Insert a chart
511
538
512
539
To insert a chart from an Odoo database into an Odoo spreadsheet:
513
540
514
- #. 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 `.
515
542
#. In the window that opens, edit the :guilabel: `Name of the graph ` if needed.
516
543
517
544
#. Click :guilabel: `Blank spreadsheet ` or select in which existing spreadsheet the chart should be
@@ -527,6 +554,14 @@ To insert a chart from an Odoo database into an Odoo spreadsheet:
527
554
528
555
Charts are inserted on the first sheet of the spreadsheet.
529
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
+
530
565
.. _spreadsheet/insert/chart-properties :
531
566
532
567
Chart properties
@@ -677,10 +712,11 @@ sections.
677
712
678
713
The :guilabel: `General ` section lets you modify the following elements:
679
714
680
- - :guilabel: `Background color `: Add or change the background color by clicking on the circle. Choose
681
- one of the standard colors or click the :icon: `fa-plus ` icon to manually select a custom color.
682
- - :guilabel: `Chart title `: Edit the chart title. The font formatting, horizontal alignment and
683
- color of the title can be modified using the editor.
715
+ - :guilabel: `Background color `: Add or change the background color by clicking on the color dot.
716
+ Choose one of the standard colors or click the :icon: `fa-plus ` icon to manually select a custom
717
+ color.
718
+ - :guilabel: `Chart title `: Edit the chart title, if needed. The font formatting, horizontal
719
+ alignment and color of the title can be modified using the editor.
684
720
- :guilabel: `Vertical axis position `: Choose whether the vertical axis is placed on the left or
685
721
right in line, column, and area charts.
686
722
- :guilabel: `Legend position `: Change the position of the legend or opt to have no legend.
@@ -729,9 +765,9 @@ To insert a clickable link from a cell:
729
765
right-click on the cell, then click :icon: `fa-link ` :guilabel: `Insert link `. Next, depending on
730
766
the desired outcome, perform one of the following actions:
731
767
732
- - Click the :icon: `fa-bars ` :guilabel: `(menu) ` icon, then :guilabel: `Link an Odoo menu `. Select the relevant
733
- menu item from the list or click :guilabel: `Search more ` to choose from a list of all menu
734
- items. Click :guilabel: `Confirm `.
768
+ - Click the :icon: `fa-bars ` :guilabel: `(menu) ` icon, then :guilabel: `Link an Odoo menu `. Select
769
+ the relevant menu item from the list or click :guilabel: `Search more ` to choose from a list of
770
+ all menu items. Click :guilabel: `Confirm `.
735
771
- Click the :icon: `fa-bars ` :guilabel: `(menu) ` icon, then :guilabel: `Link sheet `, then choose the
736
772
relevant sheet from the current spreadsheet.
737
773
- Under :guilabel: `Link `, type a URL.
@@ -755,14 +791,6 @@ To insert a clickable link from a chart to an Odoo menu item:
755
791
Hover over the top right of the chart's box to see that a new :icon: `fa-external-link `
756
792
:guilabel: `(external link) ` icon has been added.
757
793
758
- .. tip ::
759
- Clicking on a data point in a chart opens the relevant list view in the database. In the example
760
- clicking on :guilabel: `Jessica Childs ` opens the list view of all sales by this salesperson that
761
- match the domain of the chart.
762
-
763
- .. image :: insert/clickable-link-chart.png
764
- :alt: A clickable link to an Odoo menu plus clickable data point
765
-
766
794
.. _spreadsheet/insert/financial-data :
767
795
768
796
Insert financial data
0 commit comments