Skip to content

Commit a038d6a

Browse files
committed
[IMP] spreadsheet: new charts, chart options, and middle click
task-4886665 closes #13767 Signed-off-by: Siobhan McGonigle (mcsi) <[email protected]>
1 parent 7548158 commit a038d6a

File tree

4 files changed

+92
-18
lines changed

4 files changed

+92
-18
lines changed

content/applications/productivity/spreadsheet/insert.rst

Lines changed: 92 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ Several elements from your Odoo database can be inserted into an Odoo spreadshee
88
- pivot tables, i.e., data from a :ref:`pivot view <studio/views/reporting/pivot>`
99
- charts, i.e., data from a :ref:`graph view <studio/views/reporting/graph>`
1010

11+
.. note::
12+
Lists, pivot tables, and charts from different apps and models can be inserted into the same
13+
spreadsheet.
14+
1115
Each time a list, pivot table, or chart is inserted, a :ref:`data source
1216
<spreadsheet/insert/data-sources>` is created. This data source connects the spreadsheet to your
1317
Odoo database, retrieving up-to-date information every time the spreadsheet is opened, the browser
@@ -21,10 +25,6 @@ data` from the menu bar.
2125
further manipulated in the spreadsheet. Certain elements of :ref:`inserted charts
2226
<spreadsheet/insert/chart>` can be modified, but no data manipulation or computation is possible.
2327

24-
.. note::
25-
Lists, pivot tables, and charts from different apps and models can be inserted into the same
26-
spreadsheet.
27-
2828
.. tip::
2929
If you intend to use :doc:`global filters <global_filters>` to dynamically filter Odoo data in
3030
a spreadsheet or dashboard, do not use the same conditions to establish the initial list, pivot
@@ -45,10 +45,10 @@ Data sources
4545
============
4646

4747
Data sources, which are created each time a :ref:`list <spreadsheet/insert/list>`, :ref:`pivot table
48-
<spreadsheet/insert/pivot-table>` or :ref:`graph <spreadsheet/insert/chart>` is inserted into an
48+
<spreadsheet/insert/pivot-table>`, or :ref:`chart <spreadsheet/insert/chart>` is inserted into an
4949
Odoo spreadsheet, connect the spreadsheet and the relevant :doc:`model
50-
<../../studio/models_modules_apps>` in your database, keeping the data in the spreadsheet
51-
up-to-date.
50+
<../../studio/models_modules_apps>` in your database, ensuring the data stays up-to-date and
51+
allowing you to :ref:`access the underlying data <spreadsheet/insert/accessing-data>`.
5252

5353
Each data source is defined by properties that can be accessed via the :guilabel:`Data` menu. Data
5454
sources are identified by their respective :icon:`oi-view-pivot` :guilabel:`(pivot table)`,
@@ -83,6 +83,26 @@ Clicking on a data source opens the related properties in a pane on the right of
8383

8484
Deleting an inserted chart, on the other hand, also deletes the underlying data source.
8585

86+
.. _spreadsheet/insert/accessing-data:
87+
88+
Accessing underlying data
89+
-------------------------
90+
91+
The underlying data of an inserted list, pivot table, or chart can be accessed at any time. To view:
92+
93+
- an individual record of an **inserted list**, right-click any cell of the relevant row, then
94+
select :icon:`fa-eye` :guilabel:`See record`
95+
- a list of records referenced by an individual cell of an **inserted pivot table**, right-click the
96+
cell, then select :icon:`fa-eye` :guilabel:`See records`
97+
- a list of records represented by a data point of an **inserted chart**, click the data point.
98+
99+
.. tip::
100+
Use the middle mouse button or `Ctrl` + left-click (Microsoft/Linux), or `Command` + left-click
101+
(Mac OS) to open the results in a new browser tab.
102+
103+
To return to the spreadsheet after viewing the underlying data, click the name of the spreadsheet in
104+
the breadcrumbs at the top of the page.
105+
86106
.. _spreadsheet/insert/list:
87107

88108
Insert a list
@@ -151,9 +171,6 @@ name of the list followed by the list ID, e.g., *Quotations by Total (List #1)*.
151171
side of the screen shows the :ref:`list properties <spreadsheet/insert/list-properties>`.
152172

153173
.. 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.
157174
- To sever the link between an inserted list and your database, select the entire list,
158175
right-click and select :icon:`fa-clipboard` :guilabel:`Copy` then right-click again and select
159176
:menuselection:`Paste special --> Paste as value`.
@@ -231,7 +248,7 @@ relevant.
231248
Manage an inserted list
232249
-----------------------
233250

234-
Once a list from an Odoo database has been inserted into an Odoo spreadsheet, you can:
251+
After a list from an Odoo database has been inserted into an Odoo spreadsheet, you can:
235252

236253
- :ref:`add records <spreadsheet/insert/list-add-records>`, i.e., rows
237254
- :ref:`add fields <spreadsheet/insert/list-add-fields>`, i.e., columns
@@ -381,9 +398,6 @@ Team (Pivot #1)*. A pane on the right side of the screen shows the :ref:`pivot t
381398
<spreadsheet/insert/pivot-table-properties>`.
382399

383400
.. 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.
387401
- To sever the link between an inserted pivot table and your database, select the entire pivot
388402
table, right-click and select :icon:`fa-clone` :guilabel:`Copy`, then right-click again and
389403
select :menuselection:`Paste special --> Paste as value`.
@@ -476,7 +490,7 @@ To :ref:`duplicate <spreadsheet/insert/pivot-table-duplicate>` or :ref:`delete
476490
Manage an inserted pivot table
477491
------------------------------
478492

479-
Once a pivot table from an Odoo database has been inserted into an Odoo spreadsheet, you can:
493+
After a pivot table from an Odoo database has been inserted into an Odoo spreadsheet, you can:
480494

481495
- :ref:`convert it to a dynamic pivot table <spreadsheet/dynamic-pivot-tables/create>` to be able to
482496
manipulate the dimensions and measures
@@ -668,9 +682,23 @@ The :icon:`fa-sliders` :guilabel:`Configuration` tab includes the following sect
668682
.. image:: insert/chart-type-doughnut.png
669683
:alt: Doughnut chart icon
670684

671-
:guilabel:`Doughnut`: A variation of the pie chart with a hollow center, offering similar
685+
:guilabel:`Doughnut`: a variation of the pie chart with a hollow center, offering similar
672686
use cases but with a modern aesthetic.
673687

688+
.. tab:: Hierarchical
689+
690+
.. image:: insert/chart-type-sunburst.png
691+
:alt: Sunburst chart icon
692+
693+
:guilabel:`Sunburst`: a variation of the doughnut chart with hierarchical rings, showcasing
694+
part-to-whole relationships across multiple levels.
695+
696+
.. image:: insert/chart-type-treemap.png
697+
:alt: Treemap chart icon
698+
699+
:guilabel:`Treemap`: a multi-level rectangular chart that displays hierarchical data through
700+
nested rectangles, ideal for illustrating proportions and categories.
701+
674702
.. tab:: Miscellaneous
675703

676704
.. image:: insert/chart-type-scatter.png
@@ -727,6 +755,12 @@ The :icon:`fa-sliders` :guilabel:`Configuration` tab includes the following sect
727755
:guilabel:`Geo`: visualizes data on a map using color variations to represent values or
728756
categories across different geographical regions.
729757

758+
.. image:: insert/chart-type-funnel.png
759+
:alt: Geo chart icon
760+
761+
:guilabel:`Funnel`: visualizes data that progressively decreases over stages of a
762+
process, with the option to display cumulative data for each stage.
763+
730764
- :guilabel:`Domain`: the rules used to determine which records are shown. Click :ref:`Edit domain
731765
<search/custom-filters>` to add or edit rules.
732766
- :guilabel:`Link to Odoo menu`: to add a :ref:`clickable link <spreadsheet/insert/clickable-links>`
@@ -771,6 +805,42 @@ editor.
771805

772806
Waterfall charts have a dedicated :guilabel:`Waterfall design` section.
773807

808+
Manage an inserted chart
809+
------------------------
810+
811+
After a chart from an Odoo database has been inserted into an Odoo spreadsheet, you can:
812+
813+
- move the chart within the same sheet by selecting it, then dragging the chart to the desired
814+
position
815+
- resize the chart by selecting it, then clicking and dragging the blue markers until the chart is
816+
the desired size
817+
- hover over the chart, then click the :icon:`fa-bars` :guilabel:`(menu)` icon to reveal the
818+
following options:
819+
820+
- :icon:`fa-clipboard` :guilabel:`Copy` or :icon:`os-cut` :guilabel:`Cut`: to copy or cut a chart
821+
with the intention of pasting it *within the same spreadsheet*, click the relevant icon or use
822+
the relevant keyboard shortcut. Paste the chart in the desired location by clicking
823+
:menuselection:`Edit -->` :icon:`os-paste` :menuselection:`Paste` from the menu bar or use the
824+
relevant keyboard shortcut.
825+
826+
.. note::
827+
Copying/cutting and pasting a chart in this way maintains the link between the chart and your
828+
database. The data in the pasted chart remains up-to-date, and clicking on a data point opens
829+
the related list view in the database.
830+
831+
- :guilabel:`Copy as image`: to copy an image of a chart to your clipboard with the intention of
832+
pasting it *in any location within or outside your spreadsheet*, click :guilabel:`Copy as
833+
image`. Paste the image in the desired location using the paste function of the destination
834+
program or the relevant keyboard shortcut.
835+
836+
.. note::
837+
Copying and pasting a static image of a chart implies there is no longer any link between the
838+
chart and your database.
839+
840+
- :icon:`fa-trash-o` :guilabel:`Delete`: delete a chart and its underlying :ref:`data source
841+
<spreadsheet/insert/data-sources>` by clicking :icon:`fa-trash-o` :guilabel:`Delete`.
842+
Alternatively, use your preferred keyboard command to delete a chart and its data source.
843+
774844
.. _spreadsheet/insert/clickable-links:
775845

776846
Insert clickable links
@@ -786,6 +856,9 @@ You can :ref:`insert a clickable link from any spreadsheet cell
786856
- another sheet inside the same spreadsheet
787857
- an external URL
788858

859+
You can :ref:`insert a clickable link from any chart <spreadsheet/insert/clickable-links-chart>` to
860+
an Odoo menu item.
861+
789862
.. note::
790863
- Clicking a link to a menu item provides the same result as navigating via the Odoo menu within
791864
an app, e.g., the menu item :guilabel:`Sales/Orders/Quotations` corresponds to the default view
@@ -794,8 +867,9 @@ You can :ref:`insert a clickable link from any spreadsheet cell
794867
starting from the view itself. However, as this method inserts each new link in a new sheet, it
795868
is more efficient to create links to specific views starting from the spreadsheet.
796869

797-
You can :ref:`insert a clickable link from any chart <spreadsheet/insert/clickable-links-chart>` to
798-
an Odoo menu item.
870+
.. tip::
871+
Use the middle mouse button or `Ctrl` + left-click (Microsoft/Linux), or `Command` + left-click
872+
(Mac OS) to open clickable links in a new browser tab.
799873

800874
.. _spreadsheet/insert/clickable-links-cell:
801875

Loading
Loading
Loading

0 commit comments

Comments
 (0)