Extends the Ace code widget with a button to fetch file content from GitHub
Project description
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
Open any form with an Ace code widget (e.g., Automated Actions, Server Actions)
Enter edit mode
Click “Fetch from GitHub” below the editor
Enter the GitHub file URL and optionally a Personal Access Token
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").
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file odoo14_addon_ssi_web_widget_ace_git-14.0.1.1.0-py3-none-any.whl.
File metadata
- Download URL: odoo14_addon_ssi_web_widget_ace_git-14.0.1.1.0-py3-none-any.whl
- Upload date:
- Size: 23.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
676e2a6b2f4833424568f8754c22ac4fb3c53ad3331906b530621c3833edd5fc
|
|
| MD5 |
abcfcd0c37ea5c7d0202886c5af4d197
|
|
| BLAKE2b-256 |
a9024b143a9388541f0196b5e140d7d2c7ea591a00348492d00e0145f45cc6c8
|