Skip to content

[20.0][MIG] spreadsheet_dashboard_oca: Migration to 20.0 - #155

Draft
volkantasci wants to merge 40 commits into
OCA:20.0from
volkantasci:20.0-mig-spreadsheet_dashboard_oca
Draft

volkantasci wants to merge 40 commits into
OCA:20.0from
volkantasci:20.0-mig-spreadsheet_dashboard_oca

Conversation

@volkantasci

Copy link
Copy Markdown
Contributor

Migration of spreadsheet_dashboard_oca to 20.0. Depends on #137 (spreadsheet_oca).

Changes for Odoo 20:

  • Migrated ir.model.access.csv and ir_rule.xml to security/ir.access.csv.
  • Updated share name assertion in test_share_management.py for Odoo 20 default naming.

Tested locally on Odoo 20 together with #137 (all tests pass).

etobella and others added 30 commits November 29, 2026 03:22
Currently translated at 80.0% (4 of 5 strings)

Translation: spreadsheet-16.0/spreadsheet-16.0-spreadsheet_dashboard_oca
Translate-URL: https://translation.odoo-community.org/projects/spreadsheet-16-0/spreadsheet-16-0-spreadsheet_dashboard_oca/it/
Currently translated at 100.0% (9 of 9 strings)

Translation: spreadsheet-16.0/spreadsheet-16.0-spreadsheet_dashboard_oca
Translate-URL: https://translation.odoo-community.org/projects/spreadsheet-16-0/spreadsheet-16-0-spreadsheet_dashboard_oca/fr_FR/
Currently translated at 77.7% (7 of 9 strings)

Translation: spreadsheet-16.0/spreadsheet-16.0-spreadsheet_dashboard_oca
Translate-URL: https://translation.odoo-community.org/projects/spreadsheet-16-0/spreadsheet-16-0-spreadsheet_dashboard_oca/nl/
Currently translated at 100.0% (9 of 9 strings)

Translation: spreadsheet-16.0/spreadsheet-16.0-spreadsheet_dashboard_oca
Translate-URL: https://translation.odoo-community.org/projects/spreadsheet-16-0/spreadsheet-16-0-spreadsheet_dashboard_oca/it/
All the spreadsheet dashboards coming from Odoo in the modules
spreadsheet_dashboard* are noupdate="0", which means that if you
modify anything via this module, and then you update the module, all the
changes will be lost.

To avoid frustrations and to allow seamless updates, the following
mechanisms have been put in place:

- Spreadsheet dashboards now have an active field.
- Only the manually created dashboards or those coming from data
  with noupdate="1" will be editable.
- There's a mechanism for copying existing dashboards.

So, for modifying one of the standard dashboards, the steps will be:

- Duplicate it through the "Copy" button.
- Disable the standard one.
- Edit the copy.

TT49379
Currently translated at 100.0% (12 of 12 strings)

Translation: spreadsheet-16.0/spreadsheet-16.0-spreadsheet_dashboard_oca
Translate-URL: https://translation.odoo-community.org/projects/spreadsheet-16-0/spreadsheet-16-0-spreadsheet_dashboard_oca/it/
…board_sheet + dynamic + new dashboard

- Add field to define name of table and restructure order of fields

- Error with dashboard_sheet selected

The error is happening because the dashboard where
the data has to be added is not being showed.

With this changes the field to define the
dashboard is required and is showed.

Added a way to limit the search to the dashboards
that can be edited

- Allow to generate dynamic tables

On dashboards exists tables that are updated dynamically,
with this changes we have the option to generate this
dynamic tables using the pivot inserter.

Added a button to duplicate and change to dynamic
table the selected table on spreadsheet editor.

If a table with multiple row goups generated, the
way to generate the dynamic table will be set the
number of rows for each level of indentation.

Example:
2 rowGroupBys
3 number of rows
- val1
    - subval1.1
    - subval1.2
    - subval1.3
- val2
    - subval2.1
    - subval2.2
    - subval2.3
- val3
    - subval3.1
    - subval3.2
    - subval3.3

- Add option to create new dashboard
Currently translated at 100.0% (16 of 16 strings)

Translation: spreadsheet-16.0/spreadsheet-16.0-spreadsheet_dashboard_oca
Translate-URL: https://translation.odoo-community.org/projects/spreadsheet-16-0/spreadsheet-16-0-spreadsheet_dashboard_oca/it/
Currently translated at 100.0% (16 of 16 strings)

Translation: spreadsheet-16.0/spreadsheet-16.0-spreadsheet_dashboard_oca
Translate-URL: https://translation.odoo-community.org/projects/spreadsheet-16-0/spreadsheet-16-0-spreadsheet_dashboard_oca/pt/
With these changes, we have added the ability to make the columns
dynamic, just as is done with the rows.

To add this type of table, we will need to select the dynamic columns
option and choose the number of columns to insert. Keep in mind that if
multiple column levels are selected, the chosen number will apply to
each of these levels.

In addition to this, the wizard that opens with the spreadsheet button
has been updated to allow us to choose the type of dynamism we expect in
the inserted table.
- Rename field data to spreadsheet_binary_data in line with v17 spreadsheet_oca changes in PR (OCA#60)
- Remove dependency on base_view_inheritance_extension module.
- Remove dependency on spreadsheet.mixin, moved to spreadsheet.abstract
Currently translated at 100.0% (17 of 17 strings)

Translation: spreadsheet-17.0/spreadsheet-17.0-spreadsheet_dashboard_oca
Translate-URL: https://translation.odoo-community.org/projects/spreadsheet-17-0/spreadsheet-17-0-spreadsheet_dashboard_oca/zh_CN/
…ertions

1- Removed the option to add in a new sheet; this will now be the default behavior of the option to add to an existing spreadsheet. Due to the nature of tables, they are always dynamic and structured in such a way that cells don’t contain static content, making it impossible to determine where previously inserted tables end within the spreadsheet. Therefore, we’ve chosen to follow Odoo’s approach, which always inserts data into new sheets.

2- Removed the use of dynamic column fields, as they are no longer used. Only dynamic rows are used now, for cases when a tree view is inserted.
Currently translated at 100.0% (16 of 16 strings)

Translation: spreadsheet-18.0/spreadsheet-18.0-spreadsheet_dashboard_oca
Translate-URL: https://translation.odoo-community.org/projects/spreadsheet-18-0/spreadsheet-18-0-spreadsheet_dashboard_oca/it/
Currently translated at 100.0% (30 of 30 strings)

Translation: spreadsheet-18.0/spreadsheet-18.0-spreadsheet_dashboard_oca
Translate-URL: https://translation.odoo-community.org/projects/spreadsheet-18-0/spreadsheet-18-0-spreadsheet_dashboard_oca/it/
Currently translated at 100.0% (30 of 30 strings)

Translation: spreadsheet-18.0/spreadsheet-18.0-spreadsheet_dashboard_oca
Translate-URL: https://translation.odoo-community.org/projects/spreadsheet-18-0/spreadsheet-18-0-spreadsheet_dashboard_oca/es/
Currently translated at 50.0% (15 of 30 strings)

Translation: spreadsheet-18.0/spreadsheet-18.0-spreadsheet_dashboard_oca
Translate-URL: https://translation.odoo-community.org/projects/spreadsheet-18-0/spreadsheet-18-0-spreadsheet_dashboard_oca/fr/
Fold the dashboard share management feature previously proposed as the
standalone spreadsheet_dashboard_share_oca module into the main module,
following maintainer feedback on the original PR.

Core's spreadsheet_dashboard only lets users create share links; there is
no UI to list or revoke them. This adds a "Manage shares" dialog
(list / copy / revoke) and a share-count badge next to the dashboard
name, plus an ir.rule letting dashboard managers manage the shares of
every user.

Share links are copied through a button that falls back to the legacy
clipboard API when navigator.clipboard is unavailable, as it is on
non-secure origins (HTTP), where the core copy button does nothing.

Python tests cover the share flows of a user and of a manager, and a JS
test covers the clipboard fallback.
oca-ci and others added 10 commits November 29, 2026 03:22
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: spreadsheet-19.0/spreadsheet-19.0-spreadsheet_dashboard_oca
Translate-URL: https://translation.odoo-community.org/projects/spreadsheet-19-0/spreadsheet-19-0-spreadsheet_dashboard_oca/
Currently translated at 100.0% (39 of 39 strings)

Translation: spreadsheet-19.0/spreadsheet-19.0-spreadsheet_dashboard_oca
Translate-URL: https://translation.odoo-community.org/projects/spreadsheet-19-0/spreadsheet-19-0-spreadsheet_dashboard_oca/it/
Currently translated at 100.0% (39 of 39 strings)

Translation: spreadsheet-19.0/spreadsheet-19.0-spreadsheet_dashboard_oca
Translate-URL: https://translation.odoo-community.org/projects/spreadsheet-19-0/spreadsheet-19-0-spreadsheet_dashboard_oca/pl/
Currently translated at 100.0% (39 of 39 strings)

Translation: spreadsheet-19.0/spreadsheet-19.0-spreadsheet_dashboard_oca
Translate-URL: https://translation.odoo-community.org/projects/spreadsheet-19-0/spreadsheet-19-0-spreadsheet_dashboard_oca/pl/
@oca-cla-bot

oca-cla-bot Bot commented Nov 29, 2026

Copy link
Copy Markdown

The following commit authors need to sign the Contributor License Agreement:

CLA not signed

@OCA-git-bot OCA-git-bot added mod:spreadsheet_dashboard_oca Module spreadsheet_dashboard_oca series:20.0 labels Nov 29, 2026
@volkantasci
volkantasci marked this pull request as draft November 29, 2026 00:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:spreadsheet_dashboard_oca Module spreadsheet_dashboard_oca series:20.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.