Skip to content

Conversation

@chrisandrewmann
Copy link
Contributor

@chrisandrewmann chrisandrewmann commented Sep 24, 2025

Continues and supercedes odoowired's PR #65
I'll summarise below.

Forward ported PRs from V17

Fixes done over original PR

  1. Crashed when refreshing/browsing the URL of a spreadsheet action record in browser due to V18 routing changes
  2. bus_service connection changes to enable the undo/redo and collaborative editing (thanks to @etobella)
  3. Global filters were not applying and are now fixed
  4. Pivot data source menus crashed
  5. Chart data import crashed when editing the chart properties
  6. Fix listview import button not appearing in all cases (when Upload button present for example Vendor Bills)
  7. Add logic for handling spreadsheet messages for SNAPSHOT and CLIENT events
  8. Restructured to use new SpreadsheetComponent class, which solves the issue of ConfirmationDialogs using browser JS window alerts
  9. [IMP] Make all new pivots dynamic by default and format as tables
  10. [IMP] Add support for import images feature
  11. [IMP] Add accesskey shortcuts (ALT+S) for all spreadsheet import buttons
  12. [IMP] Add feature to re-import lists from data sources in side-panel with selectable number of rows

etobella and others added 30 commits September 24, 2025 14:08
With this change we are adding an extra layer of security. Without it, any user was able to sniff how all happened using something like:

    const any_spreadsheet_id = 1234;
    const channel = "spreadsheet_oca;spreadsheet.spreadsheet;" + any_spreadsheet_id;
    bus_service.addChannel(channel);
    bus_service.addEventListener("spreadsheet_oca", (message) => /* every revision arrives here */

With the change, we verify the access to the model with a similar logic to `web_editor` fields
@chrisandrewmann
Copy link
Contributor Author

chrisandrewmann commented Oct 3, 2025

The creation of dynamic rows/columns have been disappeared

Hi @CarlosRoca13
I can confirm that this is deliberate as i've used the principal to make new pivots dynamic by default so there is no need for setting the rows or columns when inserting a new pivot. In my opinion this is deprecated.
Then when inserting a new pivot, it is formatted automatically as a table and dynamic by default.
However I left the ability for you use the pivot sidebar buttons to insert a static pivot (Insert Pivot) or you can go to menu Data > Re-insert Static Pivot.

Note that nothing should have been changed in the list data source insert, I left that working as it was before.

@CarlosRoca13
Copy link
Contributor

Hmmm, okay... But if I want, for example, that the pivot has 10 rows instead of 2 that are set on the pivot?

I don't see the way of doing this and I think it is a lost feature

@chrisandrewmann
Copy link
Contributor Author

Hmmm, okay... But if I want, for example, that the pivot has 10 rows instead of 2 that are set on the pivot?

I don't see the way of doing this and I think it is a lost feature

I agree it is a compromise, however couldn't find an alternative and wanted to keep it simple.
If you want to make some code suggestions feel free but I'm struggling to spend any more time on it.

@chrisandrewmann chrisandrewmann force-pushed the 18.0-mig-spreadsheet_oca branch from 5bb34a9 to 5a54fb3 Compare October 3, 2025 16:26
@chrisandrewmann
Copy link
Contributor Author

chrisandrewmann commented Oct 3, 2025

I made one last small update, added a feature which I feel is lacking and needed. Button on the list data side-panel.
I'm using it daily in production and one of my frustrations when a list changes length and was no way to reinsert it easily.
Hope that helps.

[IMP] Add feature to re-import lists from data sources in side-panel with selectable number of rows.

image

@etobella
Copy link
Member

etobella commented Oct 8, 2025

Fixed the collaborative here: chrisandrewmann#1

@chrisandrewmann
Copy link
Contributor Author

chrisandrewmann commented Oct 8, 2025

Fixed the collaborative here: chrisandrewmann#1

Awesome! Thanks @etobella
I was so nearly there, just missed that. Your expertise is much appreciated 😊

Merged and should be testable in here now.

@pedrobaeza
Copy link
Member

Please do a rebase a get rid-off the merge commit, and it would be nice if you squash administrative commits into the main one.

@chrisandrewmann chrisandrewmann force-pushed the 18.0-mig-spreadsheet_oca branch from 97defce to 69ae03c Compare October 8, 2025 12:58
@chrisandrewmann
Copy link
Contributor Author

Please do a rebase a get rid-off the merge commit, and it would be nice if you squash administrative commits into the main one.

Done!

@etobella
Copy link
Member

etobella commented Oct 8, 2025

@CarlosRoca13 I tested locally and everything seemed to work. I see that you asked for some changed. They are still missing?

@CarlosRoca13
Copy link
Contributor

@CarlosRoca13 I tested locally and everything seemed to work. I see that you asked for some changed. They are still missing?

Hi @etobella The creation of dynamic pivots with different number of rows, but I can add it in other PR. So I will not block this more time

Copy link
Member

@etobella etobella left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok! Let's proceed with merge so we can continue with this

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

@OCA-git-bot
Copy link
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 18.0-ocabot-merge-pr-72-by-etobella-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 062843b into OCA:18.0 Oct 9, 2025
7 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at 14157a6. Thanks a lot for contributing to OCA. ❤️

@pedrobaeza
Copy link
Member

Agh, I was reducing commit history and you let me no time...

@pedrobaeza
Copy link
Member

@CarlosRoca13 the dynamic thing is not needed anymore:

Peek 09-10-2025 08-54

@CarlosRoca13
Copy link
Contributor

@CarlosRoca13 the dynamic thing is not needed anymore:

Peek 09-10-2025 08-54 Peek 09-10-2025 08-54

I know that the pivots are dynamic by default, but in previous versions, I could add a dynamic pivot with more rows/columns than the shown on the pivot, now it is not possible. If you think that this is not necessary I will not invest time on recover it.

@CarlosRoca13
Copy link
Contributor

Oh, okay, I see that the new row was added, sorry, I did not see it on my first watch

@pedrobaeza
Copy link
Member

/ocabot migration spreadsheet_oca

@OCA-git-bot OCA-git-bot added this to the 18.0 milestone Oct 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.