Metabase Connector - Metabase Dashboard Embed in Odoo, Signed Embedding
by Modvanta https://modvantaapps.tech/odoo-apps/metabase-connector/$ 11.97

Metabase Connector for Odoo 19
Show Metabase dashboards and questions inside Odoo menus with signed embedding: every viewer gets a token locked to their company or user, so each one sees only their own data.
Written and supported by Modvanta - modvantaapps@gmail.com
What it does
Metabase is a popular open-source BI tool, but its dashboards live outside Odoo. This app connects a Metabase server with its API key and embedding secret, fetches the dashboards and questions, and shows them in Odoo with Metabase static embedding. For every viewer Odoo signs a short-lived token (JWT, HS256) that contains locked parameters such as the current company, the allowed companies, the user, the contact or the employee, so a dashboard filtered on company_id shows each company only its own figures and the viewer cannot change the filter. One click adds a dashboard to the Odoo menu, visible to the user groups you choose. A helper prepares a read-only PostgreSQL user so Metabase can read the Odoo database safely.
Who it is for: Companies that already use Metabase, or want to, and need its dashboards in front of Odoo users without sharing public links or Metabase accounts.
Why merchants pick it
Signed embedding Tokens are signed with your embedding secret and expire after a few minutes; Odoo renews them while the dashboard is open. | Locked to the viewer Company, allowed companies, user, contact, employee, language or a fixed value: filled by Odoo, not by the viewer. | In the Odoo menu Create a menu for any dashboard or question under the Metabase app, in one click. |
Per-group access Choose the user groups that can open each dashboard; the menu follows. | Always up to date Dashboards and questions are fetched from the Metabase API with a button or every day. | Safe database access Generate the SQL for a read-only PostgreSQL user, or create it when the Odoo database user is allowed to. |
Key features
Metabase server: URL, API key, embedding secret key Test connection (current user, version, embedding status) Fetch dashboards and questions from the Metabase API Daily synchronisation, missing items flagged Static (signed) embedding with HS256 JWT, no extra library Token lifetime setting, automatic renewal while open Locked parameters: company, allowed companies, user, login, email, contact, employee, language, fixed value Dashboards and questions embedded in Odoo | One-click Odoo menu per dashboard Access per user group (menu and embed) Bordered, titled and theme options Open in Metabase button Read-only PostgreSQL user helper (SQL script or direct creation) Multi-company servers and dashboards API key and embedding secret visible to administrators only |
A Metabase dashboard in an Odoo menu
Sales by month and customers, read live from the Odoo database by Metabase, locked to the company of the viewer.

Connect Metabase
URL, API key and embedding secret; Test Connection confirms the API key works.

Dashboards and questions fetched from Metabase
Everything published in Metabase is listed with its collection and embedding status.

Locked parameters and access
company_id is filled with the current company of the viewer; only the chosen groups can open the dashboard; its Odoo menu is created from here.

Questions too
A single Metabase question embedded in Odoo with the same locked parameters.

All dashboards
Users open any dashboard they are allowed to see from one page.

Read-only database user
The SQL for a SELECT-only PostgreSQL user that Metabase can use to read the Odoo database.

How it works
1 | Prepare Metabase Admin settings -> Embedding: enable static embedding and copy the secret key. Admin settings -> Authentication -> API keys: create a key. |
2 | Publish the dashboards In Metabase: Sharing -> Embed -> Static embedding -> Publish, and set the parameters Odoo fills (e.g. company_id) to Locked. |
3 | Connect Odoo: Metabase -> Configuration -> Servers: URL, API key, secret, Test Connection, Fetch Dashboards and Questions. |
4 | Lock and share Open a dashboard, add its locked parameters and groups, click Create Menu. |
Settings
| Server | URL, API key, embedding secret key, token lifetime, bordered, titled, theme. |
| Dashboard / question | Metabase ID, allowed groups, parent menu, minimum height. |
| Locked parameters | Metabase parameter slug and the Odoo value that fills it. |
| Read-only user | User name, password and schema of the PostgreSQL user for Metabase. |
FAQ
Compatibility and support
Odoo 19 Community and Enterprise. Tested live with Metabase v0.50 (open-source edition).
Questions, installation help or a feature request: write to modvantaapps@gmail.com.
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
Discuss (mail)
|
| Lines of code | 724 |
| Technical Name |
mdv_metabase_connector |
| License | OPL-1 |
| Website | https://modvantaapps.tech/odoo-apps/metabase-connector/ |
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module