Skip to main content

Extends the Ace code widget with a button to fetch file content from GitHub

Project description

Beta

This module extends the Odoo 14 Ace code editor widget (FieldCode) by adding a “Fetch from GitHub” button directly below the editor area.

Clicking the button opens a dialog where the user can enter:

  • A GitHub file URL (web URL or raw URL)

  • An optional GitHub Personal Access Token (for private repositories)

The content is fetched via a backend Python proxy controller (to avoid CORS issues) and injected directly into the active Ace editor.

Features

  • Built with Odoo legacy JavaScript framework (no OWL)

  • Backend proxy controller to avoid browser CORS restrictions

  • Supports GitHub web URLs (/blob/) and raw URLs (raw.githubusercontent.com)

  • Token-based authentication for private repositories

  • Error/success notifications using native Odoo notification system

Usage

  1. Open any form with an Ace code widget (e.g., Automated Actions, Server Actions)

  2. Enter edit mode

  3. Click “Fetch from GitHub” below the editor

  4. Enter the GitHub file URL and optionally a Personal Access Token

  5. Click “Fetch & Apply”

Security

The backend controller only allows requests to github.com, raw.githubusercontent.com, and api.github.com to prevent SSRF attacks. Authentication requires a logged-in Odoo user (auth="user").

Authors

  • PT. Simetri Sinergi Indonesia

  • OpenSynergy Indonesia

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file odoo14_addon_ssi_web_widget_ace_git-14.0.1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for odoo14_addon_ssi_web_widget_ace_git-14.0.1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 676e2a6b2f4833424568f8754c22ac4fb3c53ad3331906b530621c3833edd5fc
MD5 abcfcd0c37ea5c7d0202886c5af4d197
BLAKE2b-256 a9024b143a9388541f0196b5e140d7d2c7ea591a00348492d00e0145f45cc6c8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page