iframe
The iframe widget renders a field as an embedded preview frame for the website theme picker, and flips to a mobile viewport when the theme screen tells it to.
September 18, 2026Updated September 18, 20263 min read
| Technical name | iframe |
|---|---|
| Field types | any (undeclared) |
| Views | form |
| Module | website, only present when the Website app is installed |
| Used in core | 1 use in Odoo 19 Community. Unchanged in Odoo 20. |
| Versions | Odoo 19.0, Odoo 20.0 |
| No-code setup | No. There is no Studio entry for this widget. |
| Alternatives | html, image, url |
What the iframe widget does
What this means for your team
Working examples
Why the mobile toggle only works on one screen
Version compatibility
| Version | Status | Notes |
|---|---|---|
| Odoo 19.0 | Verified | Verified against the shipped 19.0 source. |
| Odoo 20.0 | Verified | Verified against the 20.0 branch. No changes. |
Unchanged between the two branches we checked, including its single usage.
What is changing in Odoo 20
Common problems and fixes
| Symptom | Cause and fix |
|---|---|
| The mobile toggle does nothing | Nothing on this screen emits THEME_PREVIEW:SWITCH_MODE on the environment bus. Emit that event yourself from your own component, or accept the desktop frame. |
| The widget is not available | It ships in the website module. Install Website, or build your own embed component. |
| The frame is the wrong size | Sizing lives in the website.iframeWidget template, not in any option. Inherit the template, or write a component of your own. |
Iframe widget vs the alternatives
| Widget | Best for | Key difference |
|---|---|---|
iframe | The website theme preview frame | No options, and its mobile toggle depends on an event only the theme screen fires |
| html | Rich content stored on the record | Editable content rather than an embedded frame |
| image | A stored image | Renders an image, with no frame or viewport switching |
| url | A link out to an external page | Opens in a new tab instead of embedding |
Frequently asked questions
What is the Odoo iframe widget for?+
Can I use the iframe widget to embed any external page?+
Does the iframe widget have options?+
Want another system's screen inside Odoo?
Embedding a portal, a BI dashboard or a partner tool into an Odoo form is usually less about the frame and more about auth, sizing and what happens when the other side is down. We build those embeds so they degrade gracefully.
Book a free consultation