A simple Chrome extension to streamline the Odoo website development workflow.
This extension automates the process of regenerating website assets and entering edit mode in Odoo. It's designed for developers who frequently work with Odoo's website builder and need to see their changes reflected quickly.
When triggered, the extension will:
- Check Odoo's debug mode: It first determines the current debug mode of the active Odoo tab.
- Regenerate assets (if necessary): If the debug mode is not set to
assets
, the extension will automatically trigger theregenerate_assets_bundles
RPC call. This saves you the manual step of doing it yourself. - Redirect to the website preview page: It then redirects you to the website preview page (
/odoo/action-website.website_preview
). - Enter Edit Mode: Finally, it waits for the "Edit" button to appear and clicks it, putting you directly into edit mode.
- Clone or download this repository.
- Open Chrome and navigate to
chrome://extensions
. - Enable "Developer mode" in the top right corner.
- Click "Load unpacked" and select the directory where you cloned/downloaded this repository.
There are two ways to use the extension:
- Click the icon: Simply click the extension's icon in your Chrome toolbar.
- Use the keyboard shortcut: Press
Ctrl+Shift+E
(orCmd+Shift+E
on Mac).
The extension's icon changes color to indicate the Odoo debug mode of the active tab:
Blue:
assets
mode is active.Purple: Debug mode is active.
Pale: No debug mode is active.
Grey: The current page is not a local Odoo instance, or the debug mode could not be determined.
This extension is designed to work with local Odoo instances running on localhost
or 127.0.0.1
. It will not work on other domains.