Skip to content

[19.0][ADD] spreadsheet_dashboard_share_oca: manage dashboard share links - #130

Open
volkantasci wants to merge 2 commits into
OCA:19.0from
volkantasci:19.0-add-spreadsheet-dashboard-share-oca
Open

[19.0][ADD] spreadsheet_dashboard_share_oca: manage dashboard share links#130
volkantasci wants to merge 2 commits into
OCA:19.0from
volkantasci:19.0-add-spreadsheet-dashboard-share-oca

Conversation

@volkantasci

Copy link
Copy Markdown

This module adds share-link management to the spreadsheet dashboards
(Rapor Panelleri) of Odoo 19.

Features

  • Manage shares item in the Share dropdown of every dashboard: lists all
    share links of the active dashboard with creation date and creator
  • Copy any share link from the list
  • Revoke a share link: the public URL immediately returns a 404
  • Active-share badge next to the dashboard name in the sidebar (expanded
    and collapsed), refreshed live when shares are created or revoked
  • Users can only see and revoke the shares they created; members of the
    Dashboards / Admin group (spreadsheet_dashboard.group_dashboard_manager)
    can see and revoke shares created by any user

Technical notes

  • Backend: 3 @api.model methods on spreadsheet.dashboard.share
    (action_get_dashboard_shares, action_unshare, action_get_share_counts)
    • one ir.rule granting the Dashboard Admin group full visibility
  • Frontend: template inheritance of spreadsheet.ShareButton and
    spreadsheet_dashboard.DashboardAction (Expanded/Collapsed), new OWL
    ShareManageDialog component; no core file is modified
  • Tests: 9 Python tests (visibility rules, revoke + 404, counts) and 3 hoot
    tests for the dialog
  • Verified manually on Odoo 19.0 (TR locale) and with the full pre-commit
    suite (ruff, prettier, eslint, pylint, oca checks)

Screenshots

(available on request)

@OCA-git-bot OCA-git-bot added series:19.0 mod:spreadsheet_dashboard_share_oca Module spreadsheet_dashboard_share_oca labels Aug 4, 2026
The o_spreadsheet bundle compiler derives a module id from the file path
by stripping only the trailing '.js' extension, so a file named
share_manage_dialog.esm.js is registered under
'.../share_manage_dialog.esm'. The import in share_button_patch
referenced the module without the '.esm' suffix, so the dialog was never
found ('module not defined' in the browser console) and the Manage
shares button never appeared. Import the module with its '.esm' suffix,
matching the pattern used by the other bundle modules of this repo
(e.g. spreadsheet_oca).
@volkantasci
volkantasci force-pushed the 19.0-add-spreadsheet-dashboard-share-oca branch from c494e67 to 62beb16 Compare August 5, 2026 00:11
@volkantasci

Copy link
Copy Markdown
Author

Hi @pedrobaeza and @victoralmau 👋

Just a gentle check-in — if anyone has a moment, this PR would really benefit from a look whenever you're available. All CI checks are green (pre-commit, Odoo/OCB tests, codecov, runboat).

No pressure at all — happy to make any changes you suggest. Thanks for everything you do!

@pedrobaeza

Copy link
Copy Markdown
Member

I think this should be part of the main module, as the share option is something already in it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:spreadsheet_dashboard_share_oca Module spreadsheet_dashboard_share_oca series:19.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants