Skip to content

Commit af003a5

Browse files
committed
[IMP] spreadsheet: insert odoo data various updates
task-3595405 closes #13742 X-original-commit: 094c3c7 Signed-off-by: Xavier Platteau (xpl) <[email protected]> Signed-off-by: Siobhan McGonigle (mcsi) <[email protected]>
1 parent 4ac4d77 commit af003a5

File tree

1 file changed

+59
-33
lines changed
  • content/applications/productivity/spreadsheet

1 file changed

+59
-33
lines changed

content/applications/productivity/spreadsheet/insert.rst

Lines changed: 59 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ Several elements from your Odoo database can be inserted into an Odoo spreadshee
1010

1111
Each time a list, pivot table, or chart is inserted, a :ref:`data source
1212
<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.
1416

1517
:ref:`Inserted lists <spreadsheet/insert/list>` and :ref:`inserted pivot tables
1618
<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
1921
further manipulated in the spreadsheet. Certain elements of :ref:`inserted charts
2022
<spreadsheet/insert/chart>` can be modified, but no data manipulation or computation is possible.
2123

24+
.. note::
25+
Lists, pivot tables, and charts from different apps and models can be inserted into the same
26+
spreadsheet.
27+
2228
.. tip::
2329
If you intend to use :doc:`global filters <global_filters>` to dynamically filter Odoo data in
2430
a spreadsheet or dashboard, do not use the same conditions to establish the initial list, pivot
@@ -41,7 +47,8 @@ Data sources
4147
Data sources, which are created each time a :ref:`list <spreadsheet/insert/list>`, :ref:`pivot table
4248
<spreadsheet/insert/pivot-table>` or :ref:`graph <spreadsheet/insert/chart>` is inserted into an
4349
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.
4552

4653
Each data source is defined by properties that can be accessed via the :guilabel:`Data` menu. Data
4754
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
5158
.. image:: insert/data-menu.png
5259
:alt: Data sources listed in Data menu
5360

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.
5562

5663
.. 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.
6072

6173
.. note::
6274
Deleting an inserted list or pivot table, or deleting the sheet into which it was inserted, does
@@ -83,9 +95,9 @@ Insert a list
8395

8496
To insert a list:
8597

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`.
89101

90102
.. note::
91103
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)*.
139151
side of the screen shows the :ref:`list properties <spreadsheet/insert/list-properties>`.
140152

141153
.. 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.
142157
- To sever the link between an inserted list and your database, select the entire list,
143158
right-click and select :icon:`fa-clipboard` :guilabel:`Copy` then right-click again and select
144159
:menuselection:`Paste special --> Paste as value`.
@@ -183,7 +198,8 @@ List properties
183198

184199
The list properties appear on the right side of the screen when a list is inserted. They can be
185200
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`.
187203

188204
The following list properties are shown, some of which can be edited:
189205

@@ -332,17 +348,14 @@ Insert a pivot table
332348
====================
333349

334350
.. 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.
342355

343356
To insert a pivot table:
344357

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`.
346359
#. In the window that opens, edit the :guilabel:`Name of the pivot` if needed.
347360

348361
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
367380
Team (Pivot #1)*. A pane on the right side of the screen shows the :ref:`pivot table properties
368381
<spreadsheet/insert/pivot-table-properties>`.
369382

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+
370395
.. _spreadsheet/insert/pivot-table-functions-static:
371396

372397
Pivot table functions
@@ -394,9 +419,10 @@ The arguments of the functions are as follows:
394419
period targeted.
395420

396421
.. 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.
400426

401427
.. image:: insert/pivot-table-formulas.png
402428
:alt: Functions of a static pivot table
@@ -512,7 +538,7 @@ Insert a chart
512538

513539
To insert a chart from an Odoo database into an Odoo spreadsheet:
514540

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`.
516542
#. In the window that opens, edit the :guilabel:`Name of the graph` if needed.
517543

518544
#. 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:
528554

529555
Charts are inserted on the first sheet of the spreadsheet.
530556

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+
531565
.. _spreadsheet/insert/chart-properties:
532566

533567
Chart properties
@@ -772,9 +806,9 @@ To insert a clickable link from a cell:
772806
right-click on the cell, then click :icon:`fa-link` :guilabel:`Insert link`. Next, depending on
773807
the desired outcome, perform one of the following actions:
774808

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`.
778812
- Click the :icon:`fa-bars` :guilabel:`(menu)` icon, then :guilabel:`Link sheet`, then choose the
779813
relevant sheet from the current spreadsheet.
780814
- Under :guilabel:`Link`, type a URL.
@@ -798,14 +832,6 @@ To insert a clickable link from a chart to an Odoo menu item:
798832
Hover over the top right of the chart's box to see that a new :icon:`fa-external-link`
799833
:guilabel:`(external link)` icon has been added.
800834

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-
809835
.. _spreadsheet/insert/financial-data:
810836

811837
Insert financial data

0 commit comments

Comments
 (0)