google_slide_viewer
Paste a Google Docs link into a text field and get the deck embedded on the form. The URL is rewritten by a regular expression, and the starting page comes from a companion field named by convention.
| Technical name | google_slide_viewer |
|---|---|
| Field types | char, text |
| Views | form |
| Module | web, present in every Odoo database |
| Used in core | Used where a hosted presentation should be shown on a record |
| Versions | Odoo 20.0, Odoo 19.0, Odoo 18.0, Odoo 17.0 |
| No-code setup | No. The embed and its companion page field are set in view XML |
| Alternatives | pdf_viewer, iframe_wrapper, url, image_url |
What the slide viewer field does
What this means for your team
Supported options in Odoo 19
| Option | Type | What it does |
|---|---|---|
the page companion field | field found by naming convention | The widget reads a field whose name is its own field's name with a page suffix appended. There is no option to name it differently.(default: the first slide) |
placeholder_field | field | Inherited from the text field. Shows another field's value as a hint while this one is empty. |
The page field is found by convention, not configuration. The widget looks for a field whose name is this field's name with a page suffix appended. There is no option to point it elsewhere, so the companion has to be named accordingly for the starting slide to work.
Working examples
One regular expression, and two leftovers
Version compatibility
| Version | Status | Notes |
|---|---|---|
| Odoo 20.0 | In development | Not released. Byte-identical to Odoo 19 on the development branch. |
| Odoo 19.0 | Verified | Verified against the shipped source. |
| Odoo 18.0 | Verified | Same conventions and the same regular expression. |
| Odoo 17.0 | Verified | Same behavior with older component conventions. |
| Odoo 16.0 | Not available | Widget does not exist under this name. |
Upgrade note. The widget and its conventions are unchanged in views from Odoo 17 through Odoo 19. The legacy property read described above dates from an earlier props model and has simply never been cleaned up; it is harmless but is the kind of thing to leave alone rather than copy.
What is changing in Odoo 20
Common problems and fixes
| Symptom | Cause and fix |
|---|---|
| Nothing is embedded | The stored URL is not a Google Docs address, so the regular expression does not match. Use a Google Docs link, or store the content as a PDF and use the PDF viewer. |
| The deck always starts at the first slide | There is no companion page field, or it is empty. Add a field named after this one with a page suffix; the name is a convention, not an option. |
| A notification mentions a spreadsheet | The failure message was inherited from a sibling widget and never updated. Nothing to fix; it means the embed could not be displayed. |
| A private deck shows nothing | The embed is fetched by the user's browser, so the document's sharing settings apply. Make the deck accessible to whoever needs to see it. |
| The link works but the preview does not | Only two Google path shapes are recognized by the expression. Use a standard document or published link rather than a shortened or redirected one. |
| Options are ignored | The widget declares none; only the inherited text options apply. Use the text field's options as usual. |
Slide viewer field vs the alternatives
| Widget | Best for | Key difference |
|---|---|---|
google_slide_viewer | Showing a hosted Google Slides deck on the record it belongs to | Rewrites a Google Docs URL into an embed and opens at a page named by convention |
| pdf_viewer | A stored PDF | Renders a file on the record rather than a hosted document |
| iframe_wrapper | A complete HTML document | Renders stored markup rather than an external URL |
| url | A link users follow | No embed, and it works for any host |
| image_url | A hosted image | One image rather than a document |
Frequently asked questions
Which links does it accept?+
How do I make it open at a particular slide?+
Why does the error mention a spreadsheet?+
Does it work for private decks?+
Does it support options?+
Training material where the training happens
Course content, attachments and completion tracking belong together, and the integration decisions matter more than the content platform. We implement Odoo eLearning and knowledge management on versions 16 through 19.
Book a free consultation